xzfc / cached-nix-shell

Instant startup time for nix-shell
https://xzfc.github.io/cached-nix-shell/cached-nix-shell.1
The Unlicense
195 stars 16 forks source link

Does not understand relative paths like NIX_PATH=nixpkgs=. #22

Closed nh2 closed 3 years ago

nh2 commented 3 years ago

Another issue (not sure if it's the same):

NIX_PATH=nixpkgs=. cached-nix-shell -p python3 --run 'python --version'

gives:

error: opening file '/nix/store/llynybhpayj9dzjvjfj5rchsz1jwpp44-cached-nix-shell-0.1.4/var/empty/default.nix': No such file or directory
cached-nix-shell: nix-shell: exit code: 1

Using NIX_PATH=nixpkgs=$PWD instead of . works.