Aha so from https://github.com/NixOS/nixpkgs/blob/f079cd1721cd50d188f3c32387a074bf00afb34d/nixos/modules/services/misc/nix-daemon.nix#L29-L32
(incidentally, I'd love it if somehow that was generated before running the rest of a nixos-rebuild, so nix options take hold before building) On Thu Nov 06 2014 at 2:41:54 PM Peter Simons <[email protected]> wrote: > Hi Wout, > > >> The chroot build feature seems to require a statically linked bash. > > > > Not really - you just need to make sure all the libraries are in the > > chroot. I would think that it just works on Linux, where everything is > > linked only to /nix/store (unless the build got tainted). > > it "just works" on NixOS, because the system auto-generates an appropriate > /etc/nix/nix.conf file that includes all bits required by "bash" into the > chroot environment. For example: > > | build-chroot-dirs = /bin/sh=/nix/store/j9z5...-bash-4.2-p51/bin/bash > /nix/store/ghvr...-linux-headers-3.7.1 /nix/store/i11d...-glibc-2.19 > /nix/store/j9z5...-bash-4.2-p51 > > On other Linux systems, this needs to be configured manually. > > I hope this helps, > Peter > > _______________________________________________ > 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
