From 6ffc2e86150e625266e6836a1404a3e79fc74d49 Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 4 May 2015 05:43:42 +0200 Subject: pkgs: Properly namespace package under "vuizvui". For packageOverrides, we only want to return the vuizvui attribute set and nothing more. But if we want to import , we want to have access to as well, which is especially useful when using the channel. However, in callPackageWith we're explicitely using the vuizvui attribute which should override the whole set of , so that references to vuizvui packages don't need to be explicitly namespaced within vuizvui itself and we can easily override existing packages with this method as well (like just define a vuizvui package and it overrides the dependency for all of vuizvui's packages). Signed-off-by: aszlig --- modules/profiles/common.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/profiles/common.nix') diff --git a/modules/profiles/common.nix b/modules/profiles/common.nix index 21a22358..9b04fb97 100644 --- a/modules/profiles/common.nix +++ b/modules/profiles/common.nix @@ -2,10 +2,10 @@ { nixpkgs.config.packageOverrides = pkgs: { - vuizvui = import ../../pkgs { + inherit (import ../../pkgs { # We need to make sure to incorporate other package overrides, # otherwise we are unable to override packages in vuizvui.*. pkgs = pkgs // config.nixpkgs.config.packageOverrides pkgs; - }; + }) vuizvui; }; } -- cgit 1.4.1