NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
11.62k stars 1.45k forks source link

nix-shell as shebang is not able to access `<random-item-from-NIX_PATH>' #2755

Open kalbasit opened 5 years ago

kalbasit commented 5 years ago

I have this script that's trying to access <shabka> from NIX_PATH, but it does not seem to work.

#! /usr/bin/env nix-shell
#! nix-shell <shabka/shell.nix>

nixops "$@"

I would expect this to access shell.nix through <shabka> set in NIX_PATH.

$ pwd
/yl
$ NIX_PATH=shabka=/path/to/shabka ./tmp/nixops-test.sh
error: getting status of '/yl/tmp/<shabka/shell.nix>': No such file or directory
stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

stale[bot] commented 2 years ago

I closed this issue due to inactivity. → More info