about summary refs log tree commit diff
path: root/modules/profiles
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-05-04 05:43:42 +0200
committeraszlig <aszlig@redmoonstudios.org>2015-05-04 05:43:42 +0200
commit6ffc2e86150e625266e6836a1404a3e79fc74d49 (patch)
tree2834e43c08b15ff1164e34bca1786e65ea498fa1 /modules/profiles
parentb1a5dc43c57d5c32ecbe0240b20552f5c4808096 (diff)
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 <vuizvui/pkgs>, we want to
have access to <nixpkgs> as well, which is especially useful when using
the <vuizvui> channel.

However, in callPackageWith we're explicitely using the vuizvui
attribute which should override the whole set of <nixpkgs>, 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 <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules/profiles')
-rw-r--r--modules/profiles/common.nix4
1 files changed, 2 insertions, 2 deletions
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;
   };
 }