* Make sure that build-chroot-dirs only contains directories.

svn path=/nixos/trunk/; revision=13657
This commit is contained in:
Eelco Dolstra 2008-12-19 10:22:45 +00:00
parent 8a5bcfb934
commit 67451c470b

@ -135,12 +135,13 @@ import ../helpers/make-etc.nix {
refs = pkgs.writeReferencesToFile binsh;
in
pkgs.runCommand "nix.conf" {} ''
binshDeps=$(for i in $(cat ${refs}); do if test -d $i; then echo $i; fi; done)
cat > $out <<END
# WARNING: this file is generated.
build-users-group = nixbld
build-max-jobs = ${toString (config.nix.maxJobs)}
build-use-chroot = ${if config.nix.useChroot then "true" else "false"}
build-chroot-dirs = /dev /dev/pts /proc /bin $(echo $(cat ${refs}))
build-chroot-dirs = /dev /dev/pts /proc /bin $(echo $binshDeps)
${config.nix.extraOptions}
END
'';