From ad848ef89dd2d77f4ccfc75b5002282670dcdd0a Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 15 Sep 2021 15:33:18 +0200 Subject: [PATCH] pkgs: make use of scoping This is the way to make sure `callPackage` picks up my custom packages to be used in the set. --- pkgs/default.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkgs/default.nix b/pkgs/default.nix index f307304..4e35cff 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -1,5 +1,5 @@ { pkgs }: -rec { +pkgs.lib.makeScope pkgs.newScope (pkgs: { bw-pass = pkgs.callPackage ./bw-pass { }; comma = pkgs.callPackage ./comma { }; @@ -24,9 +24,7 @@ rec { volantes-cursors = pkgs.callPackage ./volantes-cursors { }; - unbound-zones-adblock = pkgs.callPackage ./unbound-zones-adblock { - inherit unified-hosts-lists; - }; + unbound-zones-adblock = pkgs.callPackage ./unbound-zones-adblock { }; unified-hosts-lists = pkgs.callPackage ./unified-hosts-lists { }; -} +})