aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/writing-nix-expressions.xml
diff options
context:
space:
mode:
authorGergely Risko <errge@nilcons.com>2014-08-21 23:46:28 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-23 11:11:19 +0200
commit4b0a720ddf05ba03c7ea94dc38bd5ec0ab1285dd (patch)
tree33d994c9817a50eba4a6d34e377124edeab63453 /doc/manual/writing-nix-expressions.xml
parentb224ac15201c57b40ea855f5a98b1bd166c1c7f6 (diff)
Document the "out" usage in allowedReferences
Diffstat (limited to 'doc/manual/writing-nix-expressions.xml')
-rw-r--r--doc/manual/writing-nix-expressions.xml9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/manual/writing-nix-expressions.xml b/doc/manual/writing-nix-expressions.xml
index 6db2adcfa..0470625ff 100644
--- a/doc/manual/writing-nix-expressions.xml
+++ b/doc/manual/writing-nix-expressions.xml
@@ -1561,10 +1561,11 @@ allowedReferences = [];
</programlisting>
enforces that the output of a derivation cannot have any runtime
- dependencies on its inputs. This is used in NixOS to check that
- generated files such as initial ramdisks for booting Linux don’t
- have accidental dependencies on other paths in the Nix
- store.</para></listitem>
+ dependencies on its inputs. To allow an output to have a runtime
+ dependency on itself, use <literal>"out"</literal> as a list item.
+ This is used in NixOS to check that generated files such as
+ initial ramdisks for booting Linux don’t have accidental
+ dependencies on other paths in the Nix store.</para></listitem>
</varlistentry>