Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shell: workaround locking in to default.nix
When supplying a url to nix-shell: nix-shell https://github/tweag/nickel/archive/master.tar.gz It does not attempt to load the shell.nix file contained in the tarball, instead only loading default.nix, which fails if it doesn't provide a viable shell. I would expect the behavior to be consistent with launching from the base of a repository, namely, load shell.nix if it exists, default.nix otherwise. (see divnix/digga@e2172c8)
- Loading branch information
9df972f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WhyNIX_PATH=nixpkgs=http://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz nix-shell https://github.com/tweag/nickel/archive/9df972fb9119900198d7f0b21a8e6dc19032decb.tar.gz
does not work directly with PR: NixOS/nix#2431 (one might passimport...fetchGit
withref
via-E
as elaborated here: NixOS/nix#726 (comment) as a workaround)EDIT: This is probably misleading context. I'm removing it from this PR.