[Nix-dev] Re: `guile-1.6.7' fails to build
Ludovic Courtès
ludovic.courtes at laas.fr
Mon Oct 15 13:44:17 CEST 2007
Hi,
Marc Weber <marco-oweber at gmx.de> writes:
> You are right, nix isn't totally pure.
> Eg a lot of package do contain optimizations for different processors.
> These settings are set to [autodetect] by the configure script at many
> packages.
Speaking of this, how does Nix ensure that `configure' scripts won't
discover things (programs, libraries, C include files, etc.) outside the
Nix store?
It seems that `configure' may need to run inside a chroot where only
`/nix/store/*' (and `/bin/sh') are visible. Actually, rather than
`/nix/store/*', the chroot would need to have `~/.nix-profile' as `/',
with symlinks followed. Plash [0] seems like a good tool to setup such
restricted name spaces.
Thanks,
Ludovic.
[0] http://plash.beasts.org/
More information about the nix-dev
mailing list