From b7629778efcfeb9ea876616feb869457cd2bf071 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 29 Dec 2012 23:04:02 +0100 Subject: Allow mounting a path in a different location in the chroot Fixes #24. --- doc/manual/conf-file.xml | 65 +++++++++++++++++++++--------------------------- 1 file changed, 29 insertions(+), 36 deletions(-) (limited to 'doc/manual/conf-file.xml') diff --git a/doc/manual/conf-file.xml b/doc/manual/conf-file.xml index 70437686d8bd..588e15216491 100644 --- a/doc/manual/conf-file.xml +++ b/doc/manual/conf-file.xml @@ -33,18 +33,18 @@ env-keep-derivations = false You can override settings using the flag, e.g. --option gc-keep-outputs false. -The following settings are currently available: +The following settings are currently available: - + gc-keep-outputs If true, the garbage collector will keep the outputs of non-garbage derivations. If false (default), outputs will be deleted unless they are GC roots themselves (or reachable from other roots). - + In general, outputs must be registered as roots separately. However, even if the output of a derivation is registered as a root, the collector will still delete store paths that are used @@ -53,7 +53,7 @@ flag, e.g. --option gc-keep-outputs false. this option to true. - + gc-keep-derivations @@ -71,7 +71,7 @@ flag, e.g. --option gc-keep-outputs false. - + env-keep-derivations If false (default), derivations @@ -95,7 +95,7 @@ flag, e.g. --option gc-keep-outputs false. - + build-max-jobs This option defines the maximum number of jobs @@ -234,7 +234,27 @@ flag, e.g. --option gc-keep-outputs false. - + + build-chroot-dirs + + When builds are performed in a chroot environment, + Nix will mount some directories from the normal file system + hierarchy inside the chroot. These are the Nix store, the + temporary build directory (usually + /tmp/nix-build-drvname-number), + the /proc filesystem, and the directories + listed here. The default is /dev /dev/pts, + since these contain files needed by many builds (such as + /dev/null). You can use the syntax + target=source + to mount a path in a different location in the chroot; for + instance, /bin=/nix-bin will mount the + directory /nix-bin as /bin + inside the chroot. + + + + build-use-substitutes If set to true (default), Nix @@ -243,7 +263,7 @@ flag, e.g. --option gc-keep-outputs false. - + build-fallback If set to true, Nix will fall @@ -253,34 +273,7 @@ flag, e.g. --option gc-keep-outputs false. - - build-chroot-dirs - - When builds are performed in a chroot environment, - Nix will mount (using mount --bind on Linux) - some directories from the normal file system hierarchy inside the - chroot. These are the Nix store, the temporary build directory - (usually - /tmp/nix-pid-number) - and the directories listed here. The default is dev - /proc. Files in /dev (such as - /dev/null) are needed by many builds, and - some files in /proc may also be needed - occasionally. - - The value used on NixOS is - - -build-use-chroot = /dev /proc /bin - - to make the /bin/sh symlink available (which - is still needed by many builders). - - - - - build-cache-failures If set to true, Nix will @@ -417,7 +410,7 @@ build-use-chroot = /dev /proc /bin - + auto-optimise-store If set to true (the default), -- cgit 1.4.1