[Nix-dev] is there something like unsafeImpureEnvVars?

Ben Franksen ben.franksen at online.de
Wed Apr 16 00:40:45 CEST 2014


Ben Franksen wrote:
> I will now read up on how to enable chroot builds in multi-user configured
> Nix...

Ok, I now have

  build-use-chroot = true

in my /etc/nix/nix.conf. Now, my build fails with this strange error:

building /nix/store/y57pn9yk7r9j06nqfkyd4b1h5p8gfdzr-epics-
base-3.14.12.2.1/configure/CONFIG_ENV
make[2]: /bin/sh: Command not found

I _did_ run the patchShebangs function on my sources before building. I 
verified that this actually worked by using the -K option to nix-build, then 
looked at the build directory:

ben at sarun[1]: .../apps/HoBiCaT-Controls > cd /tmp/nix-build-epics-
base-3.14.12.2.1.drv-8 
ben at sarun[1]: /tmp/nix-build-epics-base-3.14.12.2.1.drv-8 > rgrep '/bin/sh' 
.                                           
./fetchdarcs/config/tools/installEpics:#!/nix/store/7mjplwq1r0agngqj2058hl5z8kb3w15g-
bash-4.2-p42/bin/sh
./fetchdarcs/startup/EpicsHostArch:#!/nix/store/7mjplwq1r0agngqj2058hl5z8kb3w15g-
bash-4.2-p42/bin/sh
./fetchdarcs/startup/Site.profile:#!/nix/store/7mjplwq1r0agngqj2058hl5z8kb3w15g-
bash-4.2-p42/bin/sh
./fetchdarcs/src/util/rc2.logServer:#!/nix/store/7mjplwq1r0agngqj2058hl5z8kb3w15g-
bash-4.2-p42/bin/sh
./fetchdarcs/src/util/rc2.caRepeater:#!/nix/store/7mjplwq1r0agngqj2058hl5z8kb3w15g-
bash-4.2-p42/bin/sh

So everything in my sources is patched to use stuff from /nix/store (I 
checked that the path exists and is executable) and still it complains about 
some /bin/sh missing?

Cheers
Ben
-- 
"Make it so they have to reboot after every typo." -- Scott Adams




More information about the nix-dev mailing list