diff options
author | Graham Christensen <graham@grahamc.com> | 2018-10-12 15:34:57 -0400 |
---|---|---|
committer | Graham Christensen <graham@grahamc.com> | 2018-10-12 16:06:12 -0400 |
commit | c547c3fe8262270ab8ddf129ec2bb8ebd4a38766 (patch) | |
tree | 5c77c0ae838ca2967212fcd964622bcfe48db87e /doc/functions | |
parent | f85a4ba9c30434f9e0a2e2a57489543304d29f42 (diff) |
nixpkgs docs: document toDerivation
Diffstat (limited to 'doc/functions')
-rw-r--r-- | doc/functions/library/attrsets.xml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/functions/library/attrsets.xml b/doc/functions/library/attrsets.xml index f671c5f4e4be..222b4a882917 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> |