[Nix-dev] texinfo4 seems to have a /bin/sh dependency

Peter Simons simons at cryp.to
Tue Apr 28 12:34:06 CEST 2015


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



More information about the nix-dev mailing list