2016-11-05 18:14:03 +01:00
|
|
|
{
|
2017-05-15 18:44:58 +02:00
|
|
|
mkDerivation, lib, copyPathsToStore,
|
2017-02-26 13:49:15 +01:00
|
|
|
extra-cmake-modules, kdoctools,
|
2016-11-05 18:14:03 +01:00
|
|
|
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,
|
2017-02-28 17:51:20 +01:00
|
|
|
plasma-workspace, qtdeclarative, qtquickcontrols, qtquickcontrols2, qtsvg,
|
|
|
|
qtx11extras, xf86inputevdev, xf86inputsynaptics, xinput, xkeyboard_config,
|
|
|
|
xorgserver,
|
2017-01-20 17:44:21 +01:00
|
|
|
utillinux
|
2016-04-21 18:01:22 +02:00
|
|
|
}:
|
|
|
|
|
2017-05-15 18:44:58 +02:00
|
|
|
mkDerivation rec {
|
2016-04-21 18:01:22 +02:00
|
|
|
name = "plasma-desktop";
|
2017-02-26 13:49:15 +01:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
2016-06-08 20:51:25 +02:00
|
|
|
buildInputs = [
|
2016-11-05 18:14:03 +01:00
|
|
|
attica boost fontconfig ibus kcmutils kdbusaddons kded kitemmodels knewstuff
|
2016-04-28 19:59:24 +02:00
|
|
|
knotifications knotifyconfig kwallet libcanberra_kde libXcursor
|
|
|
|
libpulseaudio libXft libxkbfile phonon qtsvg xf86inputevdev
|
2016-07-10 11:33:21 +02:00
|
|
|
xf86inputsynaptics xkeyboard_config xinput baloo kactivities
|
|
|
|
kactivities-stats kauth kdeclarative kdelibs4support kemoticons kglobalaccel
|
|
|
|
ki18n kpeople krunner kwin plasma-framework plasma-workspace qtdeclarative
|
2017-02-28 17:51:20 +01:00
|
|
|
qtquickcontrols qtquickcontrols2 qtx11extras ksysguard
|
2016-04-21 18:01:22 +02:00
|
|
|
];
|
2017-01-20 17:44:21 +01:00
|
|
|
|
|
|
|
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
2016-06-19 10:18:30 +02:00
|
|
|
postPatch = ''
|
2017-01-20 17:44:21 +01:00
|
|
|
substituteInPlace kcms/dateandtime/helper.cpp \
|
|
|
|
--subst-var hwclock "${utillinux}/sbin/hwclock"
|
|
|
|
|
2016-06-19 10:18:30 +02:00
|
|
|
sed '1i#include <cmath>' -i kcms/touchpad/src/backends/x11/synapticstouchpad.cpp
|
|
|
|
'';
|
2017-05-26 22:43:31 +02:00
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
"-I${lib.getDev xorgserver}/include/xorg"
|
|
|
|
''-DNIXPKGS_HWCLOCK="${lib.getBin utillinux}/sbin/hwclock"''
|
|
|
|
];
|
2016-04-21 18:01:22 +02:00
|
|
|
cmakeFlags = [
|
2016-05-23 13:00:21 +02:00
|
|
|
"-DEvdev_INCLUDE_DIRS=${xf86inputevdev.dev}/include/xorg"
|
2016-08-27 23:28:02 +02:00
|
|
|
"-DSynaptics_INCLUDE_DIRS=${xf86inputsynaptics.dev}/include/xorg"
|
2016-04-21 18:01:22 +02:00
|
|
|
];
|
2016-11-13 19:33:38 +01:00
|
|
|
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/'
|
|
|
|
'';
|
2016-04-21 18:01:22 +02:00
|
|
|
}
|