hoarder: 0.21.0 -> 0.22.0
[NixPkgs.git] / pkgs / kde / plasma / plasma-desktop / default.nix
blob53c270cb5905d2fcf0c0fe54f42e04afc6a486b3
2   lib,
3   mkKdeDerivation,
4   runCommandLocal,
5   makeWrapper,
6   glib,
7   gsettings-desktop-schemas,
8   replaceVars,
9   util-linux,
10   pkg-config,
11   qtsvg,
12   qtwayland,
13   breeze,
14   kaccounts-integration,
15   SDL2,
16   xkeyboard_config,
17   xorg,
18   libcanberra,
19   libxkbfile,
20   ibus,
22 let
23   # run gsettings with desktop schemas for using in "kcm_access" kcm
24   # and in kaccess
25   gsettings-wrapper = runCommandLocal "gsettings-wrapper" { nativeBuildInputs = [ makeWrapper ]; } ''
26     mkdir -p $out/bin
27     makeWrapper ${glib}/bin/gsettings $out/bin/gsettings --prefix XDG_DATA_DIRS : ${gsettings-desktop-schemas.out}/share/gsettings-schemas/${gsettings-desktop-schemas.name}
28   '';
30 mkKdeDerivation {
31   pname = "plasma-desktop";
33   patches = [
34     (replaceVars ./hwclock-path.patch {
35       hwclock = "${lib.getBin util-linux}/bin/hwclock";
36     })
37     (replaceVars ./kcm-access.patch {
38       gsettings = "${gsettings-wrapper}/bin/gsettings";
39     })
40     ./tzdir.patch
41     ./no-discover-shortcut.patch
42     (replaceVars ./wallpaper-paths.patch {
43       wallpapers = "${lib.getBin breeze}/share/wallpapers";
44     })
45   ];
47   extraNativeBuildInputs = [ pkg-config ];
48   extraBuildInputs = [
49     qtsvg
50     qtwayland
52     kaccounts-integration
54     SDL2
55     libcanberra
56     libxkbfile
57     xkeyboard_config
59     xorg.libXcursor
60     xorg.libXft
61     xorg.xf86inputlibinput
62     xorg.xf86inputevdev
63     xorg.xorgserver
65     ibus
66   ];
68   # wrap kaccess with wrapped gsettings so it can access accessibility schemas
69   qtWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ gsettings-wrapper ]}" ];