Hi Tyson,

many packages depend on /bin/sh in one way or another. Remedying that
impurity is a huge effort that's probably characterized best as
"on-going". For the time being, we work around this problem by providing a
/bin/sh in the chroot environment through the following /etc/nix/nix.conf
configuration:

  build-chroot-dirs = /bin/sh=/nix/store/<HASH>-bash-4.3-p33/bin/bash 
/nix/store/<HASH>-linux-headers-3.12.32 /nix/store/<HASH>-glibc-2.21 
/nix/store/<HASH>-bash-4.3-p33

The first entry creates the /bin/sh path, and the remaining entries
provide the necessary run-time dependencies so that bash can run.

On NixOS, this kind of setup is generated automatically. If you're running
Nix on another host system, then you'll have to figure out the appropriate
paths yourself and add them to your /etc/nix/nix.conf.

Best regards,
Peter

_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to