mirror of
https://github.com/NixOS/nix-pills
synced 2024-09-19 04:00:13 -04:00
13-callpackage-design-pattern.md: no need for with nixpkgs
The original code had `with nixpkgs`, but with the callPackage pattern, actually nothing from nixpkgs is used, so the `with nixpkgs` can be removed.
This commit is contained in:
parent
60c02d07b5
commit
2948c676b6
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue