Skip to content

Commit

Permalink
gnome: switch to makeScopeWithSplicing, and remove with self
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCao committed Jan 17, 2022
1 parent 52edbfc commit 5546010
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions pkgs/desktops/gnome/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{ config, pkgs, lib }:

lib.makeScope pkgs.newScope (self: with self; {
{ config, pkgs, lib, splicePackages, newScope
, pkgsBuildBuild, pkgsBuildHost, pkgsBuildTarget, pkgsHostHost, pkgsTargetTarget }:

lib.makeScopeWithSplicing splicePackages newScope {
selfBuildBuild = pkgsBuildBuild.gnome;
selfBuildHost = pkgsBuildHost.gnome;
selfBuildTarget = pkgsBuildTarget.gnome;
selfHostHost = pkgsHostHost.gnome;
selfTargetTarget = pkgsTargetTarget.gnome or {};
} (self: { }) (spliced0: { })
(self: let inherit (self) callPackage; in {
updateScript = callPackage ./update.nix { };

/* Remove packages of packagesToRemove from packages, based on their names
Expand All @@ -19,7 +27,7 @@ lib.makeScope pkgs.newScope (self: with self; {
lib.filter (x: !(builtins.elem (lib.getName x) namesToRemove)) packages;

libsoup = pkgs.libsoup.override { gnomeSupport = true; };
libchamplain = pkgs.libchamplain.override { libsoup = libsoup; };
libchamplain = pkgs.libchamplain.override { libsoup = self.libsoup; };

# ISO installer
# installerIso = callPackage ./installer.nix {};
Expand Down

0 comments on commit 5546010

Please sign in to comment.