You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing the package and opening a new shell (so /etc/profile/nix.sh is sourced), running nix-* commands should work as expected, e.g. nix-channel --update.
$ nix-channel --update
unpacking channels...
error: while setting up the build environment: getting attributes of path '': No such file or directory
error: program '/usr/bin/nix-env' failed with exit code 1
Proposed fix
As in NixOS/nix#2673 we should add --with-sandbox-shell=/bin/sh to ./configure arguments at build time.
System
Void 4.19.28_2 x86_64 GenuineIntel uptodate rrFFF
nix-2.2.1_2
Expected behavior
After installing the package and opening a new shell (so
/etc/profile/nix.sh
is sourced), runningnix-*
commands should work as expected, e.g.nix-channel --update
.Actual behavior
We encounter the error described in NixOS/nix#2673:
Proposed fix
As in NixOS/nix#2673 we should add
--with-sandbox-shell=/bin/sh
to./configure
arguments at build time.void-packages/srcpkgs/nix/template
Line 7 in cfe41fc
Workaround
Set
sandbox-paths = /bin/sh=/bin/sh
in/etc/nix/nix.conf
The text was updated successfully, but these errors were encountered: