summary refs log tree commit diff
path: root/doc/functions
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2018-10-12 15:34:57 -0400
committerGraham Christensen <graham@grahamc.com>2018-10-12 16:06:12 -0400
commitc547c3fe8262270ab8ddf129ec2bb8ebd4a38766 (patch)
tree5c77c0ae838ca2967212fcd964622bcfe48db87e /doc/functions
parentf85a4ba9c30434f9e0a2e2a57489543304d29f42 (diff)
downloadnixpkgs-c547c3fe8262270ab8ddf129ec2bb8ebd4a38766.tar
nixpkgs-c547c3fe8262270ab8ddf129ec2bb8ebd4a38766.tar.gz
nixpkgs-c547c3fe8262270ab8ddf129ec2bb8ebd4a38766.tar.bz2
nixpkgs-c547c3fe8262270ab8ddf129ec2bb8ebd4a38766.tar.lz
nixpkgs-c547c3fe8262270ab8ddf129ec2bb8ebd4a38766.tar.xz
nixpkgs-c547c3fe8262270ab8ddf129ec2bb8ebd4a38766.tar.zst
nixpkgs-c547c3fe8262270ab8ddf129ec2bb8ebd4a38766.zip
nixpkgs docs: document toDerivation
Diffstat (limited to 'doc/functions')
-rw-r--r--doc/functions/library/attrsets.xml26
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/functions/library/attrsets.xml b/doc/functions/library/attrsets.xml
index f671c5f4e4b..222b4a88291 100644
--- a/doc/functions/library/attrsets.xml
+++ b/doc/functions/library/attrsets.xml
@@ -1274,4 +1274,30 @@ lib.attrsets.isDerivation "foobar"
      ]]></programlisting>
   </example>
  </section>
+
+ <section xml:id="function-library-lib.attrsets.toDerivation">
+  <title><function>lib.attrsets.toDerivation</function></title>
+
+  <subtitle><literal>toDerivation :: Path -> Derivation</literal>
+  </subtitle>
+
+  <xi:include href="./locations.xml" xpointer="lib.attrsets.toDerivation" />
+
+  <para>
+   Converts a store path to a fake derivation.
+  </para>
+
+  <variablelist>
+   <varlistentry>
+    <term>
+     <varname>path</varname>
+    </term>
+    <listitem>
+     <para>
+      A store path to convert to a derivation.
+     </para>
+    </listitem>
+   </varlistentry>
+  </variablelist>
+ </section>
 </section>