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

Create tmp dir if it is missing #23

Closed SuperSandro2000 closed 3 years ago

SuperSandro2000 commented 3 years ago

After cleaning out my /tmp I was presented with the following error:

cached-nix-shell: updating cache
error: failed to extract archive (Can't create '/tmp/nix-511939-1/nixpkgs-nixpkgs-unstable/pkgs/development/tools/pandoc/default.nix')
cached-nix-shell: nix-shell: exit code: 1

Can we just create that directory instead of failing?

SuperSandro2000 commented 3 years ago

Unrelated to cached-nix-shell. The failure is when I use nix-shell -I with a URL.