1
0
Fork 0
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:
Noam Yorav-Raphael 2024-04-14 21:14:25 +03:00 committed by GitHub
parent 60c02d07b5
commit 2948c676b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 { };