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 <nixpkgs> references #21

Closed nh2 closed 3 years ago

nh2 commented 3 years ago

It seems it doesn't understand <variable> references yet, is that correct?

Works in nix-shell:

NIX_PATH= nix-shell -I nixpkgs=/etc/nixos/nixpkgs '<nixpkgs>' -A procps

Does not work in cached-nix-shell:

NIX_PATH= cached-nix-shell -I nixpkgs=/etc/nixos/nixpkgs '<nixpkgs>' -A procps

(I repro with NIX_PATH= to empty that variable, to avoid the <nixpkgs>' import potentially working due to some other system-dependent reason.)

xzfc commented 3 years ago

Thanks for the report. Both #21 and #22 should be fixed in master branch.

nh2 commented 3 years ago

Thanks!