gnome3: simplify package set using makeScope

This commit is contained in:
Jan Tojnar 2018-07-06 09:45:40 +02:00
parent 8f5b0686ee
commit 188e487dd1
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -1,18 +1,6 @@
{ pkgs, lib }:
let
pkgsFun = overrides:
let
self = self_ // overrides;
self_ = with self; {
overridePackages = f:
let newself = pkgsFun (f newself self);
in newself;
callPackage = pkgs.newScope self;
lib.makeScope pkgs.newScope (self: with self; {
# Convert a version to branch (3.26.18 → 3.26)
# Used for finding packages on GNOME mirrors
versionBranch = version: builtins.concatStringsSep "." (lib.take 2 (lib.splitString "." version));
@ -431,7 +419,4 @@ let
yelp_xsl = yelp-xsl; # added 2018-02-25
yelp_tools = yelp-tools; # added 2018-02-25
};
in self; # pkgsFun
in pkgsFun {}
})