summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2015-10-15 10:22:28 -0700
committerWilliam A. Kennington III <william@wkennington.com>2015-10-15 10:22:28 -0700
commit8a44a36ca496d2c61904b22f8ba6a77ec5aa0b36 (patch)
tree90013bf1e284372e7de0ad6b3715dc5a0ea926d1 /doc
parent1283e3da5d0bc4657677d40fa3cb117b66489ee5 (diff)
parent62e676b9598d2638e846761160082f6fec392ffe (diff)
downloadnixlib-8a44a36ca496d2c61904b22f8ba6a77ec5aa0b36.tar
nixlib-8a44a36ca496d2c61904b22f8ba6a77ec5aa0b36.tar.gz
nixlib-8a44a36ca496d2c61904b22f8ba6a77ec5aa0b36.tar.bz2
nixlib-8a44a36ca496d2c61904b22f8ba6a77ec5aa0b36.tar.lz
nixlib-8a44a36ca496d2c61904b22f8ba6a77ec5aa0b36.tar.xz
nixlib-8a44a36ca496d2c61904b22f8ba6a77ec5aa0b36.tar.zst
nixlib-8a44a36ca496d2c61904b22f8ba6a77ec5aa0b36.zip
Merge branch 'master.upstream' into staging.upstream
Diffstat (limited to 'doc')
-rw-r--r--doc/functions.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/functions.xml b/doc/functions.xml
index 5378b59abcb2..39010f8ab145 100644
--- a/doc/functions.xml
+++ b/doc/functions.xml
@@ -236,6 +236,20 @@ c = lib.makeOverridable f { a = 1; b = 2; }</programlisting>
     <literal>runScript</literal> parameter, which is a command that would be
     executed inside the sandbox and passed all the command line arguments. It
     default to <literal>bash</literal>.
+  </para>
+  <para>
+    It also uses <literal>CHROOTENV_EXTRA_BINDS</literal> environment variable
+    for binding extra directories in the sandbox to outside places. The format of
+    the variable is <literal>/mnt=test-mnt:/data</literal>, where
+    <literal>/mnt</literal> would be mounted as <literal>/test-mnt</literal>
+    and <literal>/data</literal> would be mounted as <literal>/data</literal>.
+    <literal>extraBindMounts</literal> array argument to
+    <function>buildFHSUserEnv</function> function is prepended to this variable.
+    Latter entries take priority if defined several times -- i.e. in case of
+    <literal>/data=data1:/data=data2</literal> the actual bind path would be
+    <literal>/data2</literal>.
+  </para>
+  <para>
     One can create a simple environment using a <literal>shell.nix</literal>
     like that:
   </para>