diff --git a/pills/07-working-derivation.xml b/pills/07-working-derivation.xml index e40284b..37c9acf 100644 --- a/pills/07-working-derivation.xml +++ b/pills/07-working-derivation.xml @@ -296,16 +296,16 @@ The value returned by the nixpkgs function is a set. More specifically, it's a set of derivations. Using the with expression we bring - them into scope. This is the same as what :l does in - nix repl, so we can easily access derivations + them into scope. This is equivalent to the :l <nixpkgs> + we used in nix repl; it allows us to easily access derivations such as bash, gcc, and coreutils. Then we meet the inherit keyword. - inherit foo; is equivalent to foo = foo;; - inherit foo bar; is equivalent to foo = foo; bar = bar;. + inherit foo; is equivalent to foo = foo;. + Similarly, inherit foo bar; is equivalent to foo = foo; bar = bar;. This syntax only makes sense inside sets. There's no magic involved, it's