1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{
lib,
mkKdeDerivation,
substituteAll,
xorg,
pkg-config,
spirv-tools,
qtsvg,
qtwayland,
libcanberra,
libqalculate,
pipewire,
breeze,
qttools,
qqc2-breeze-style,
gpsd,
}:
mkKdeDerivation {
pname = "plasma-workspace";
patches = [
(substituteAll {
src = ./tool-paths.patch;
xmessage = "${lib.getBin xorg.xmessage}/bin/xmessage";
xsetroot = "${lib.getBin xorg.xsetroot}/bin/xsetroot";
qdbus = "${lib.getBin qttools}/bin/qdbus";
})
(substituteAll {
src = ./wallpaper-paths.patch;
wallpapers = "${lib.getBin breeze}/share/wallpapers";
})
];
postInstall = ''
# Prevent patching this shell file, it only is used by sourcing it from /bin/sh.
chmod -x $out/libexec/plasma-sourceenv.sh
'';
extraNativeBuildInputs = [pkg-config spirv-tools];
extraBuildInputs = [
qtsvg
qtwayland
qqc2-breeze-style
libcanberra
libqalculate
pipewire
xorg.libSM
xorg.libXcursor
xorg.libXtst
xorg.libXft
gpsd
];
passthru.providedSessions = ["plasma" "plasmax11"];
}
|