Hi,
Lluís Batlle i Rossell wrote:
> I noticed the nixos nix.conf includes /bin in the build chroot.
>
> I saw that perl, when using the system() command, it runs /bin/sh "on unix",
> the
> manual says.
Actually, the system() function in Glibc executes /bin/sh. And there are
numerous shells scripts that refer to /bin/sh. So this is an impure dependency
that's very hard to get rid of.
> In ubuntu, /bin/sh happens to point to /bin/dash, and so that is not able to
> parse a thing like "source $stdenv/setup".
>
> The buildenv package consists of a perl builder calling:
> system("eval \"\$postBuild\"")
Aha. So this should be changed to `system("$ENV{SHELL} -c 'eval $postBuild'")'
or something like that.
--
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev