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

error: while evaluating the attribute 'CARGO_GIT_COMMIT' #2

Closed hlissner closed 4 years ago

hlissner commented 4 years ago

Trying to install cached-nix-shell (on 19.09) after dbdcb4c3 breaks with the following error:

$ nix-env --show-trace -i -f https://github.com/xzfc/cached-nix-shell/tarball/master

installing 'cached-nix-shell-0.1.0'
error: while evaluating the attribute 'CARGO_GIT_COMMIT' of the derivation 'cached-nix-shell-0.1.0' at /nix/store/0hpchj8q1x473rsh0prlbrq9crhdhwpm-source/build.nix:118:5:
while evaluating 'readCommitFromFile' at /nix/store/r6myrp2ks92jfmlkwvy8zh65wiw5d5kb-nixos-19.09.1840.f7d050ed4e3/nixos/lib/sources.nix:109:36, called from /nix/store/2pn81ipn9rh3c8bznps7b98ab01h76pk-master/default.nix:11:22:
getting attributes of path '/nix/store/2pn81ipn9rh3c8bznps7b98ab01h76pk-master/.git': No such file or directory
xzfc commented 4 years ago

Oops. Should be fixed now.

hlissner commented 4 years ago

Works wonderfully. Thanks for the prompt fix (and this project)!