Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

46 lines
1.0 KiB
Nix

{
lib,
mkKdeDerivation,
replaceVars,
procps,
xsettingsd,
pkg-config,
wrapGAppsHook3,
sass,
qtsvg,
gsettings-desktop-schemas,
}:
mkKdeDerivation {
pname = "kde-gtk-config";
# The gtkconfig KDED module will crash the daemon if the GSettings schemas
# aren't found.
patches = [
./0001-gsettings-schemas-path.patch
(replaceVars ./dependency-paths.patch {
pgrep = lib.getExe' procps "pgrep";
xsettingsd = lib.getExe xsettingsd;
})
];
preConfigure = ''
NIX_CFLAGS_COMPILE+=" -DGSETTINGS_SCHEMAS_PATH=\"$GSETTINGS_SCHEMAS_PATH\""
'';
extraNativeBuildInputs = [
pkg-config
wrapGAppsHook3
sass
];
extraBuildInputs = [ qtsvg ];
dontWrapGApps = true; # There is nothing to wrap
extraCmakeFlags = [ "-DGLIB_SCHEMAS_DIR=${gsettings-desktop-schemas.out}/" ];
# Hardcoded as QStrings, which are UTF-16 so Nix can't pick these up automatically
postFixup = ''
mkdir -p $out/nix-support
echo "${procps} ${xsettingsd}" > $out/nix-support/depends
'';
}