xfce: fix cross-compilation by using makeScopeWithSplicing

This commit is contained in:
Artturin 2022-11-05 23:10:58 +02:00
parent 1f3ebb2bd1
commit 5568a4d25c

View file

@ -1,6 +1,33 @@
{ config, lib, pkgs }:
{ config
, lib
, pkgs
, splicePackages
, newScope
, pkgsBuildBuild
, pkgsBuildHost
, pkgsBuildTarget
, pkgsHostHost
, pkgsTargetTarget
}:
lib.makeScope pkgs.newScope (self: with self; {
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;