Skip to content

Commit

Permalink
removed the section about inherit.
Browse files Browse the repository at this point in the history
  • Loading branch information
henrik-ch committed Jun 1, 2023
1 parent d73521d commit eb13dd8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pills/07-working-derivation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -306,12 +306,6 @@
such as <varname>bash</varname>, <varname>gcc</varname>, and
<varname>coreutils</varname>.
</para>
<para>
Then we meet the
<link xlink:href="https://nixos.org/manual/nix/stable/expressions/language-constructs.html#inheriting-attributes"><code>inherit</code> keyword</link>.
<code>inherit foo;</code> is equivalent to <code>foo = foo;</code>.
Similarly, <code>inherit foo bar;</code> is equivalent to <code>foo = foo; bar = bar;</code>.
</para>
<para>
This syntax only makes sense inside sets. There's no magic involved, it's
simply a convenience to avoid repeating the same name for both the
Expand Down

0 comments on commit eb13dd8

Please sign in to comment.