Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nix] nix-2.2.1_2 fails to initialize after fresh install #9805

Closed
alixinne opened this issue Mar 14, 2019 · 0 comments
Closed

[nix] nix-2.2.1_2 fails to initialize after fresh install #9805

alixinne opened this issue Mar 14, 2019 · 0 comments

Comments

@alixinne
Copy link
Contributor

System

  • xuname: Void 4.19.28_2 x86_64 GenuineIntel uptodate rrFFF
  • package: nix-2.2.1_2

Expected behavior

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.

Actual behavior

We encounter the error described in NixOS/nix#2673:

$ 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.

configure_args="--localstatedir=/nix/var"

Workaround

Set sandbox-paths = /bin/sh=/bin/sh in /etc/nix/nix.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant