NixOS / nix

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

nix-shell fails to work with "--option store $HOME" #1936

Open viric opened 6 years ago

viric commented 6 years ago

Having a shell.nix, the build process of nix-shell works fine, but the execution doesn't work well:

$ nix-shell --option store $HOME --option sandbox-paths "$HOME/tmp /bin/sh=/nix/store/abqplkiy4mm70kg92wn97dgayj99a8m8-busybox-1.27.2/bin/busybox" -I ssh-auth-sock=$HOME/tmp/agent
build input /nix/store/0ln1qqfv5f93lbhzysy752ydj8kfl3ls-cinder-023c591-cognex does not exist

The path exists in the $HOME/nix/store, but not in /nix/store.

stale[bot] commented 3 years ago

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