Skip to content

Commit

Permalink
13-callpackage-design-pattern.md: no need for with nixpkgs
Browse files Browse the repository at this point in the history
The original code had `with nixpkgs`, but with the callPackage pattern, actually nothing from nixpkgs is used, so the `with nixpkgs` can be removed.
  • Loading branch information
noamraph authored Apr 14, 2024
1 parent 60c02d0 commit 2948c67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pills/13-callpackage-design-pattern.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ let
f = import path;
in
f ((builtins.intersectAttrs (builtins.functionArgs f) allPkgs) // overrides);
pkgs = with nixpkgs; {
pkgs = {
mkDerivation = import ./autotools.nix nixpkgs;
hello = callPackage ./hello.nix { };
graphviz = callPackage ./graphviz.nix { };
Expand Down

0 comments on commit 2948c67

Please sign in to comment.