mirror of
https://github.com/NixOS/nix-pills
synced 2024-09-19 04:00:13 -04:00
Merge pull request #96 from mhwombat/master
reworded to avoid two consecutive semi-colons
This commit is contained in:
commit
d2038b5dbe
|
@ -296,16 +296,16 @@
|
||||||
<para>
|
<para>
|
||||||
The value returned by the nixpkgs function is a set. More specifically,
|
The value returned by the nixpkgs function is a set. More specifically,
|
||||||
it's a set of derivations. Using the <code>with</code> expression we bring
|
it's a set of derivations. Using the <code>with</code> expression we bring
|
||||||
them into scope. This is the same as what <command>:l</command> does in
|
them into scope. This is equivalent to the <command>:l <nixpkgs></command>
|
||||||
<application>nix repl</application>, so we can easily access derivations
|
we used in <application>nix repl</application>; it allows us to easily access derivations
|
||||||
such as <varname>bash</varname>, <varname>gcc</varname>, and
|
such as <varname>bash</varname>, <varname>gcc</varname>, and
|
||||||
<varname>coreutils</varname>.
|
<varname>coreutils</varname>.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
Then we meet the
|
Then we meet the
|
||||||
<link xlink:href="https://nixos.org/nix/manual/#idm140737318075200"><code>inherit</code> keyword</link>.
|
<link xlink:href="https://nixos.org/nix/manual/#idm140737318075200"><code>inherit</code> keyword</link>.
|
||||||
<code>inherit foo;</code> is equivalent to <code>foo = foo;</code>;
|
<code>inherit foo;</code> is equivalent to <code>foo = foo;</code>.
|
||||||
<code>inherit foo bar;</code> is equivalent to <code>foo = foo; bar = bar;</code>.
|
Similarly, <code>inherit foo bar;</code> is equivalent to <code>foo = foo; bar = bar;</code>.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
This syntax only makes sense inside sets. There's no magic involved, it's
|
This syntax only makes sense inside sets. There's no magic involved, it's
|
||||||
|
|
Loading…
Reference in a new issue