[Nix-dev] chroot builds on other Linux platforms

2012-12-28 Thread Sander van der Burg - EWI
I'm using Nix on an ordinary Linux distro (not NixOS) and I want to use chroot builds, to make package builds more pure. I've successfully performed a multi-user installation and I've enabled chroot builds in nix.conf. However, the default build-chroot-dirs option value does not include the

[Nix-dev] [***SPAM***] chroot builds on other Linux platforms

2012-12-28 Thread Michael Raskin
I'm using Nix on an ordinary Linux distro (not NixOS) and I want to use chroot builds, to make package builds more pure. I've successfully performed a multi-user installation and I've enabled chroot builds in nix.conf. However, the default build-chroot-dirs option value does not include the

Re: [Nix-dev] chroot builds on other Linux platforms

2012-12-28 Thread Eelco Dolstra
Hi, On 28/12/12 18:41, Sander van der Burg - EWI wrote: A possible solution is to bind mount a different directory from my host system (only containing the shell) into the the chroot environment. It would have to be a statically linked shell, otherwise you'll need /lib as well. Is there an

[Nix-dev] [***SPAM***] Re: chroot builds on other Linux platforms

2012-12-28 Thread Michael Raskin
A possible solution is to bind mount a different directory from my host system (only containing the shell) into the the chroot environment. It would have to be a statically linked shell, otherwise you'll need /lib as well. Or a link to stdenv.shell.

Re: [Nix-dev] chroot builds on other Linux platforms

2012-12-28 Thread Sander van der Burg - EWI
Yes, you're right about the statically linked shell, or I have to bind mount /lib into the chroot environment as well, introducing many more impurities. Now that I'm thinking about this: It almost sounds like a good idea to implement a feature in Nix providing a static shell in /bin/sh for any

[Nix-dev] [***SPAM***] Re: chroot builds on other Linux platforms

2012-12-28 Thread Michael Raskin
I could also be more creative -- e.g. running nix-daemon in a chroot providing a pure environment. But doing that is a bit too much effort for me. :P Well, you can take my script in the short run configurations/trunk/misc/raskin/misc-scripts/special-chroot I do exactly this chroot trick