bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
54 lines
958 B
Nix
54 lines
958 B
Nix
{
|
|
lib,
|
|
mkKdeDerivation,
|
|
substituteAll,
|
|
xorg,
|
|
pkg-config,
|
|
spirv-tools,
|
|
qtsvg,
|
|
qtwayland,
|
|
libcanberra,
|
|
libqalculate,
|
|
pipewire,
|
|
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";
|
|
})
|
|
];
|
|
|
|
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"];
|
|
}
|