Skip to content

Commit

Permalink
gnome3: simplify package set using makeScope
Browse files Browse the repository at this point in the history
  • Loading branch information
jtojnar committed Jul 6, 2018
1 parent 8f5b068 commit 188e487
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions pkgs/desktops/gnome-3/default.nix
Original file line number Diff line number Diff line change
@@ -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));
Expand Down Expand Up @@ -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 {}
})

0 comments on commit 188e487

Please sign in to comment.