[Nix#8890] nix-shell fails to parse NIX_PATH #120
Labels
No labels
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/store
bug
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
RFD
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
ux
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#120
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Upstream-Issue: NixOS/nix#8890
Describe the bug
nix-shell isn't able to understand the
NIX_PATH
env var to locate<nixpkgs>
.Steps To Reproduce
$ NIX_PATH="nixpkgs=/nix/store/066hr2pmppfzfsn1d6lb9485hniz5p53-source" nix-shell -p nix-info --run "nix-info -m"
Fails with:
Expected behavior
I expected it to work the same way as when executed this way:
nix-shell -I nixpkgs=/nix/store/066hr2pmppfzfsn1d6lb9485hniz5p53-source -p nix-info --run "nix-info -m"
nix-env --version
outputnix-env (Nix) 2.13.5
Additional context
I think I only started seeing this after setting
nix.channel.enable = false;
in my NixOS config, but I don't think it should be relevant in any way since I'm specifying NIX_PATH explicitly in the examples above.EDIT: My
nix.conf
includesnix-path =
(blank) as a consequence of my NixOS setup. See comments below.Priorities
Add 👍 to issues you find important.