2016-11-05 17:14:03 +00:00
|
|
|
{
|
2017-05-15 17:44:58 +01:00
|
|
|
mkDerivation, lib, copyPathsToStore,
|
2017-02-26 12:49:15 +00:00
|
|
|
extra-cmake-modules, kdoctools,
|
2017-05-26 21:44:36 +01:00
|
|
|
|
|
|
|
boost, fontconfig, ibus, libXcursor, libXft, libcanberra_kde, libpulseaudio,
|
|
|
|
libxkbfile, xf86inputevdev, xf86inputsynaptics, xinput, xkeyboard_config,
|
|
|
|
xorgserver, utillinux,
|
|
|
|
|
|
|
|
qtdeclarative, qtquickcontrols, qtquickcontrols2, qtsvg, qtx11extras,
|
|
|
|
|
|
|
|
attica, baloo, kactivities, kactivities-stats, kauth, kcmutils, kdbusaddons,
|
|
|
|
kdeclarative, kded, kdelibs4support, kemoticons, kglobalaccel, ki18n,
|
|
|
|
kitemmodels, knewstuff, knotifications, knotifyconfig, kpeople, krunner,
|
|
|
|
kscreenlocker, ksysguard, kwallet, kwin, phonon, plasma-framework,
|
|
|
|
plasma-workspace,
|
2016-04-21 17:01:22 +01:00
|
|
|
}:
|
|
|
|
|
2017-05-15 17:44:58 +01:00
|
|
|
mkDerivation rec {
|
2016-04-21 17:01:22 +01:00
|
|
|
name = "plasma-desktop";
|
2017-02-26 12:49:15 +00:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
2016-06-08 19:51:25 +01:00
|
|
|
buildInputs = [
|
2017-05-26 21:44:36 +01:00
|
|
|
boost fontconfig ibus libcanberra_kde libpulseaudio libXcursor libXft
|
|
|
|
libxkbfile phonon xf86inputevdev xf86inputsynaptics xinput xkeyboard_config
|
|
|
|
|
|
|
|
qtdeclarative qtquickcontrols qtquickcontrols2 qtsvg qtx11extras
|
|
|
|
|
|
|
|
attica baloo kactivities kactivities-stats kauth kcmutils kdbusaddons
|
|
|
|
kdeclarative kded kdelibs4support kemoticons kglobalaccel ki18n kitemmodels
|
|
|
|
knewstuff knotifications knotifyconfig kpeople krunner kscreenlocker
|
|
|
|
ksysguard kwallet kwin plasma-framework plasma-workspace
|
2016-04-21 17:01:22 +01:00
|
|
|
];
|
2017-01-20 16:44:21 +00:00
|
|
|
|
|
|
|
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
2016-06-19 09:18:30 +01:00
|
|
|
postPatch = ''
|
|
|
|
sed '1i#include <cmath>' -i kcms/touchpad/src/backends/x11/synapticstouchpad.cpp
|
|
|
|
'';
|
2017-05-26 21:43:31 +01:00
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
"-I${lib.getDev xorgserver}/include/xorg"
|
|
|
|
''-DNIXPKGS_HWCLOCK="${lib.getBin utillinux}/sbin/hwclock"''
|
|
|
|
];
|
2016-04-21 17:01:22 +01:00
|
|
|
cmakeFlags = [
|
2017-05-26 21:44:36 +01:00
|
|
|
"-DEvdev_INCLUDE_DIRS=${lib.getDev xf86inputevdev}/include/xorg"
|
|
|
|
"-DSynaptics_INCLUDE_DIRS=${lib.getDev xf86inputsynaptics}/include/xorg"
|
2016-04-21 17:01:22 +01:00
|
|
|
];
|
2016-11-13 18:33:38 +00:00
|
|
|
postInstall = ''
|
|
|
|
# Display ~/Desktop contents on the desktop by default.
|
2017-05-26 21:44:36 +01:00
|
|
|
sed -i "''${!outputBin}/share/plasma/shells/org.kde.plasma.desktop/contents/defaults" \
|
2016-11-13 18:33:38 +00:00
|
|
|
-e 's/Containment=org.kde.desktopcontainment/Containment=org.kde.plasma.folder/'
|
|
|
|
'';
|
2016-04-21 17:01:22 +01:00
|
|
|
}
|