On NixOS, nix is configured to not only provide the chroot but also /bin/sh compatability. This is fixed in nix 1.9 so I recommend just using the unstable version of nix as it should just work. On Apr 27, 2015 11:42 AM, "Tyson Whitehead" <[email protected]> wrote:
> I've configured a system using the nix-daemon with "build-use-chroot = > true" and came across the following problem (using the unstable packages) > > [tyson@test-centos6 .nixpkgs]$ nix-env -iA nixpkgs.texinfo4 > installing ‘texinfo-4.13a’ > these derivations will be built: > /nix/store/zng3jwybhn7cj2qagslx9hm41w29ab94-texinfo-4.13a.drv > building path(s) > ‘/nix/store/39hrhw46j3vww48hasn8zxpq0jkw25ms-texinfo-4.13a’ > unpacking sources > unpacking source archive > /nix/store/9fh76lcx21pf35flmzfh35sya9a4g069-texinfo-4.13a.tar.lzma > source root is texinfo-4.13 > patching sources > configuring > configure flags: --disable-dependency-tracking > --prefix=/nix/store/39hrhw46j3vww48hasn8zxpq0jkw25ms-texinfo-4.13a > /nix/store/3sqnsignf07mwz12fmi9r4g4vigxg3al-stdenv/setup: ./configure: > /bin/sh: bad interpreter: No such file or directory > builder for > ‘/nix/store/zng3jwybhn7cj2qagslx9hm41w29ab94-texinfo-4.13a.drv’ failed with > exit code 126 > error: build of > ‘/nix/store/zng3jwybhn7cj2qagslx9hm41w29ab94-texinfo-4.13a.drv’ failed > > If I understand correctly, the issue is that configure in > texinfo-4.13a.tar.lzma refers to /bin/sh and this doesn't exist in the > chroot environment. Presumably this works if I disable chroot builds but > then parts of my external system would be leaking into my nix builds so > that seems wrong too. > > What is the recommended way to proceed here? Am I missing something? Is > there some stdenv flag to handle this sort of thing? Should I file a bug? > > Thanks! -Tyson > _______________________________________________ > nix-dev mailing list > [email protected] > http://lists.science.uu.nl/mailman/listinfo/nix-dev >
_______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
