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

70 lines
1.5 KiB
Nix

{
lib,
mkKdeDerivation,
runCommandLocal,
makeWrapper,
glib,
gsettings-desktop-schemas,
replaceVars,
util-linux,
pkg-config,
qtsvg,
qtwayland,
breeze,
SDL2,
xkeyboard_config,
xorg,
libcanberra,
libwacom,
libxkbfile,
ibus,
}:
let
# run gsettings with desktop schemas for using in "kcm_access" kcm
# and in kaccess
gsettings-wrapper = runCommandLocal "gsettings-wrapper" { nativeBuildInputs = [ makeWrapper ]; } ''
mkdir -p $out/bin
makeWrapper ${glib}/bin/gsettings $out/bin/gsettings --prefix XDG_DATA_DIRS : ${gsettings-desktop-schemas.out}/share/gsettings-schemas/${gsettings-desktop-schemas.name}
'';
in
mkKdeDerivation {
pname = "plasma-desktop";
patches = [
(replaceVars ./hwclock-path.patch {
hwclock = "${lib.getBin util-linux}/bin/hwclock";
})
(replaceVars ./kcm-access.patch {
gsettings = "${gsettings-wrapper}/bin/gsettings";
})
./tzdir.patch
./no-discover-shortcut.patch
(replaceVars ./wallpaper-paths.patch {
wallpapers = "${lib.getBin breeze}/share/wallpapers";
})
];
extraNativeBuildInputs = [ pkg-config ];
extraBuildInputs = [
qtsvg
qtwayland
SDL2
libcanberra
libwacom
libxkbfile
xkeyboard_config
xorg.libXcursor
xorg.libXft
xorg.xf86inputlibinput
xorg.xf86inputevdev
xorg.xorgserver
ibus
];
# wrap kaccess with wrapped gsettings so it can access accessibility schemas
qtWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ gsettings-wrapper ]}" ];
}