-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Legacy nix-shell
with a path prefers shell.nix over default.nix
#11699
Comments
nix-shell
attribute selection broken on 2.24nix-shell
with a path prefers shell.nix over default.nix with -A
.
nix-shell
with a path prefers shell.nix over default.nix with -A
.nix-shell
with a path prefers shell.nix over default.nix
Never mind, it's an intentional change: cfe3ee3 Whether that was a good idea or not is to be discussed, but this is not a bug. |
It seems sort of odd to me for the meaning of |
I agree it seems like an ad hoc extra rule on the face of it, but we could think of it as only changing the shell rule:
It's not great, I have to admit, but it's still a manageable rule, and least it wouldn't regress a significant Nixpkgs use case. |
FWIW in discussion with @K900 and @alyssais on Matrix I think we considered that it might be reasonable to simply re‐export the entire package set from Nixpkgs’ |
@emilazy I just came up with the same thoughts! NixOS/nixpkgs#353240 |
Yeah, I think the nixpkgs change is the way to go now. At least that way all the Nix versions work as intended. |
Complicating the rules to accomodate this usage of |
Describe the bug
This also breaks a common pattern of
nix-shell path/to/nixpkgs -A foo
.Steps To Reproduce
nix-shell . -A hello
Expected behavior
A shell.
nix-env --version
outputnix-env (Nix) 2.24.9
Additional context
2.18 is not affected, neither is Lix, may bisect later.
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: