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.