From 32a6f24667e58265e9ac4e7bec57b0981949033c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amy=20de=20Buitl=C3=A9ir?= Date: Tue, 11 Dec 2018 19:09:43 +0000 Subject: [PATCH] reworded to avoid two consecutive semi-colons --- pills/07-working-derivation.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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