3
0
Fork 0
forked from mirrors/nixpkgs

nixpkgs docs: document toDerivation

This commit is contained in:
Graham Christensen 2018-10-12 15:34:57 -04:00
parent f85a4ba9c3
commit c547c3fe82
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -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>