Adding a possibility to add more paths to chroots used by nix-daemons. The use-case is building the latest version from repository with very large checkouts. That way you do not get extra copy in store every time you rebuild, and you can implement a saner version checking than checksumming all the data

svn path=/nixos/trunk/; revision=26174
This commit is contained in:
Michael Raskin 2011-03-06 15:39:05 +00:00
parent 0c6129bb90
commit 00f3a816a9

View file

@ -69,6 +69,16 @@ in
This option allows to append lines to nix.conf.
";
};
extraChrootPaths = mkOption {
default = [];
example = ["/var/dist"];
description = ''
Extra paths to include in chroot. May be useful if you build
from private repository mirrors to avoid extra checksumming
and copying to store.
'';
};
distributedBuilds = mkOption {
default = false;
@ -176,7 +186,6 @@ in
you should increase this value.
'';
};
};
};
@ -211,7 +220,7 @@ in
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 $extraPaths)
build-chroot-dirs = /dev /dev/pts /proc /bin $(echo $extraPaths) ${builtins.toString config.nix.extraChrootPaths}
$extraOptions
END
'';