gnome3: easier to override packages

This commit is contained in:
Luca Bruno 2015-06-15 11:47:32 +02:00
parent e0100a0f8d
commit cc5663de0c
2 changed files with 17 additions and 7 deletions

View File

@ -1,6 +1,16 @@
{ callPackage, pkgs, self }:
{ pkgs }:
let
pkgsFun = overrides:
let
self = self_ // overrides;
self_ = with self; {
overridePackages = f: pkgsFun (f self);
callPackage = pkgs.newScope self;
rec {
corePackages = with gnome3; [
pkgs.desktop_file_utils pkgs.ibus
pkgs.shared_mime_info # for update-mime-database
@ -293,4 +303,7 @@ rec {
gtkhtml = callPackage ./misc/gtkhtml { };
}
};
in self; # pkgsFun
in pkgsFun {}

View File

@ -13614,10 +13614,7 @@ let
inherit (pkgs) libsoup libwnck gtk_doc gnome_doc_utils;
};
gnome3_16 = recurseIntoAttrs (callPackage ../desktops/gnome-3/3.16 {
callPackage = pkgs.newScope pkgs.gnome3_16;
self = pkgs.gnome3_16;
});
gnome3_16 = recurseIntoAttrs (callPackage ../desktops/gnome-3/3.16 { });
gnome3 = gnome3_16;