gnome3: easier to override packages
This commit is contained in:
parent
e0100a0f8d
commit
cc5663de0c
@ -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 {}
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user