about summary refs log tree commit diff
path: root/pkgs/desktops/xfce/default.nix
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2022-11-05 23:10:58 +0200
committerArtturin <Artturin@artturin.com>2022-11-05 23:10:58 +0200
commit5568a4d25ca406809530420996d57e0876ca1a01 (patch)
tree1353d7c10ebc84ae123200fc23323c344e6a4be9 /pkgs/desktops/xfce/default.nix
parent1f3ebb2bd1a353a42e8f833895c26d8415c7b791 (diff)
xfce: fix cross-compilation by using makeScopeWithSplicing
Diffstat (limited to 'pkgs/desktops/xfce/default.nix')
-rw-r--r--pkgs/desktops/xfce/default.nix33
1 files changed, 30 insertions, 3 deletions
diff --git a/pkgs/desktops/xfce/default.nix b/pkgs/desktops/xfce/default.nix
index 7cbf02fef8dd7..6f47cea9ffa3f 100644
--- a/pkgs/desktops/xfce/default.nix
+++ b/pkgs/desktops/xfce/default.nix
@@ -1,6 +1,33 @@
-{ config, lib, pkgs }:
-
-lib.makeScope pkgs.newScope (self: with self; {
+{ config
+, lib
+, pkgs
+, splicePackages
+, newScope
+, pkgsBuildBuild
+, pkgsBuildHost
+, pkgsBuildTarget
+, pkgsHostHost
+, pkgsTargetTarget
+}:
+
+let
+  otherSplices = {
+    selfBuildBuild = pkgsBuildBuild.xfce;
+    selfBuildHost = pkgsBuildHost.xfce;
+    selfBuildTarget = pkgsBuildTarget.xfce;
+    selfHostHost = pkgsHostHost.xfce;
+    selfTargetTarget = pkgsTargetTarget.xfce or {};
+  };
+  keep = _self: { };
+  extra = _spliced0: {};
+
+in lib.makeScopeWithSplicing
+  splicePackages
+  newScope
+  otherSplices
+  keep
+  extra
+  (self: with self; {
   #### NixOS support
 
   genericUpdater = pkgs.genericUpdater;