diff options
Diffstat (limited to 'pkgs/desktops/plasma-5/plasma-desktop/default.nix')
-rw-r--r-- | pkgs/desktops/plasma-5/plasma-desktop/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/desktops/plasma-5/plasma-desktop/default.nix b/pkgs/desktops/plasma-5/plasma-desktop/default.nix new file mode 100644 index 000000000000..21ceec25d53f --- /dev/null +++ b/pkgs/desktops/plasma-5/plasma-desktop/default.nix @@ -0,0 +1,44 @@ +{ + plasmaPackage, lib, copyPathsToStore, + ecm, kdoctools, + attica, baloo, boost, fontconfig, ibus, kactivities, kactivities-stats, kauth, + kcmutils, kdbusaddons, kdeclarative, kded, kdelibs4support, kemoticons, + kglobalaccel, ki18n, kitemmodels, knewstuff, knotifications, knotifyconfig, + kpeople, krunner, ksysguard, kwallet, kwin, libXcursor, libXft, + libcanberra_kde, libpulseaudio, libxkbfile, phonon, plasma-framework, + plasma-workspace, qtdeclarative, qtquickcontrols, qtsvg, qtx11extras, + xf86inputevdev, xf86inputsynaptics, xinput, xkeyboard_config, xorgserver, + utillinux +}: + +plasmaPackage rec { + name = "plasma-desktop"; + nativeBuildInputs = [ ecm kdoctools ]; + buildInputs = [ + attica boost fontconfig ibus kcmutils kdbusaddons kded kitemmodels knewstuff + knotifications knotifyconfig kwallet libcanberra_kde libXcursor + libpulseaudio libXft libxkbfile phonon qtsvg xf86inputevdev + xf86inputsynaptics xkeyboard_config xinput baloo kactivities + kactivities-stats kauth kdeclarative kdelibs4support kemoticons kglobalaccel + ki18n kpeople krunner kwin plasma-framework plasma-workspace qtdeclarative + qtquickcontrols qtx11extras ksysguard + ]; + + patches = copyPathsToStore (lib.readPathsFromFile ./. ./series); + postPatch = '' + substituteInPlace kcms/dateandtime/helper.cpp \ + --subst-var hwclock "${utillinux}/sbin/hwclock" + + sed '1i#include <cmath>' -i kcms/touchpad/src/backends/x11/synapticstouchpad.cpp + ''; + NIX_CFLAGS_COMPILE = [ "-I${xorgserver.dev}/include/xorg" ]; + cmakeFlags = [ + "-DEvdev_INCLUDE_DIRS=${xf86inputevdev.dev}/include/xorg" + "-DSynaptics_INCLUDE_DIRS=${xf86inputsynaptics.dev}/include/xorg" + ]; + postInstall = '' + # Display ~/Desktop contents on the desktop by default. + sed -i "$out/share/plasma/shells/org.kde.plasma.desktop/contents/defaults" \ + -e 's/Containment=org.kde.desktopcontainment/Containment=org.kde.plasma.folder/' + ''; +} |