biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / desktops / plasma-5 / plasma-desktop / default.nix
blobaaf1519ceaeb3152c6c7c6638096fd1633b52710
1 { mkDerivation
2 , lib
3 , extra-cmake-modules
4 , kdoctools
5 , wayland-scanner
6 , boost
7 , fontconfig
8 , ibus
9 , libXcursor
10 , libXft
11 , libcanberra_kde
12 , libpulseaudio
13 , libxkbfile
14 , xf86inputevdev
15 , xf86inputsynaptics
16 , xinput
17 , xkeyboard_config
18 , xorgserver
19 , util-linux
20 , wayland
21 , wayland-protocols
22 , accounts-qt
23 , qtdeclarative
24 , qtquickcontrols
25 , qtquickcontrols2
26 , qtsvg
27 , qtx11extras
28 , attica
29 , baloo
30 , kaccounts-integration
31 , kactivities
32 , kactivities-stats
33 , kauth
34 , kcmutils
35 , kdbusaddons
36 , kdeclarative
37 , kded
38 , kdelibs4support
39 , kemoticons
40 , kglobalaccel
41 , ki18n
42 , kitemmodels
43 , knewstuff
44 , knotifications
45 , knotifyconfig
46 , kpeople
47 , krunner
48 , kscreenlocker
49 , kwallet
50 , kwin
51 , phonon
52 , plasma-framework
53 , plasma-workspace
54 , qqc2-desktop-style
55 , xf86inputlibinput
56 , glib
57 , gsettings-desktop-schemas
58 , runCommandLocal
59 , makeWrapper
61 let
62   # run gsettings with desktop schemas for using in "kcm_access" kcm
63   # and in kaccess
64   gsettings-wrapper = runCommandLocal "gsettings-wrapper" { nativeBuildInputs = [ makeWrapper ]; } ''
65     mkdir -p $out/bin
66     makeWrapper ${glib}/bin/gsettings $out/bin/gsettings --prefix XDG_DATA_DIRS : ${gsettings-desktop-schemas.out}/share/gsettings-schemas/${gsettings-desktop-schemas.name}
67   '';
69 mkDerivation {
70   pname = "plasma-desktop";
71   nativeBuildInputs = [ extra-cmake-modules kdoctools wayland-scanner ];
72   buildInputs = [
73     boost
74     fontconfig
75     ibus
76     libcanberra_kde
77     libpulseaudio
78     libXcursor
79     libXft
80     xorgserver
81     libxkbfile
82     phonon
83     xf86inputlibinput
84     xf86inputevdev
85     xf86inputsynaptics
86     xinput
87     xkeyboard_config
88     wayland
89     wayland-protocols
91     accounts-qt
92     qtdeclarative
93     qtquickcontrols
94     qtquickcontrols2
95     qtsvg
96     qtx11extras
98     attica
99     baloo
100     kaccounts-integration
101     kactivities
102     kactivities-stats
103     kauth
104     kcmutils
105     kdbusaddons
106     kdeclarative
107     kded
108     kdelibs4support
109     kemoticons
110     kglobalaccel
111     ki18n
112     kitemmodels
113     knewstuff
114     knotifications
115     knotifyconfig
116     kpeople
117     krunner
118     kscreenlocker
119     kwallet
120     kwin
121     plasma-framework
122     plasma-workspace
123     qqc2-desktop-style
124   ];
126   patches = [
127     ./hwclock-path.patch
128     ./tzdir.patch
129     ./kcm-access.patch
130     ./no-discover-shortcut.patch
131   ];
132   CXXFLAGS =
133     [
134       ''-DNIXPKGS_HWCLOCK=\"${lib.getBin util-linux}/bin/hwclock\"''
135       ''-DNIXPKGS_GSETTINGS=\"${gsettings-wrapper}/bin/gsettings\"''
136     ];
137   postInstall = ''
138     # Display ~/Desktop contents on the desktop by default.
139     sed -i "''${!outputBin}/share/plasma/shells/org.kde.plasma.desktop/contents/defaults" \
140         -e 's/Containment=org.kde.desktopcontainment/Containment=org.kde.plasma.folder/'
141   '';
143   # wrap kaccess with wrapped gsettings so it can access accessibility schemas
144   qtWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ gsettings-wrapper ]}" ];