forked from mirrors/nixpkgs
nixpkgs docs: document toDerivation
This commit is contained in:
parent
f85a4ba9c3
commit
c547c3fe82
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue