From 6ca3ca16d58ef4e3d075478748113400bae928be Mon Sep 17 00:00:00 2001 From: Florian Peter Date: Sun, 30 Dec 2018 11:29:18 -1000 Subject: [PATCH] Fix typo in Pill 13 (#102) --- pills/13-callpackage-design-pattern.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pills/13-callpackage-design-pattern.xml b/pills/13-callpackage-design-pattern.xml index d146b76..08e3e9b 100644 --- a/pills/13-callpackage-design-pattern.xml +++ b/pills/13-callpackage-design-pattern.xml @@ -108,7 +108,7 @@ We needed a way to pass pkgs to callPackage somehow. Instead of returning the set of packages directly from default.nix, we first assign it to a let variable and reuse it in callPackage. For convenience, in callPackage we first import the file, instead of calling it directly. Otherwise for each package we would have to write the import. Since our expressions use packages from nixpkgs, in callPackage we use allPkgs, which is the union of nixpkgs and our packages. - We moved mkDerivation in pkgs itself, so that it gets also passed automatically. + We moved mkDerivation into pkgs itself, so that it also gets passed automatically.