nixpkgs/pkgs/desktops/plasma-5/plasma-desktop/default.nix

55 lines
2.1 KiB
Nix
Raw Normal View History

2016-11-05 10:14:03 -07:00
{
mkDerivation, lib,
extra-cmake-modules, kdoctools,
2017-05-26 13:44:36 -07:00
boost, fontconfig, ibus, libXcursor, libXft, libcanberra_kde, libpulseaudio,
libxkbfile, xf86inputevdev, xf86inputsynaptics, xinput, xkeyboard_config,
2020-11-24 07:29:28 -08:00
xorgserver, util-linux,
2017-05-26 13:44:36 -07:00
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, qqc2-desktop-style, xf86inputlibinput
2016-04-21 09:01:22 -07:00
}:
2019-08-13 14:52:01 -07:00
mkDerivation {
2016-04-21 09:01:22 -07:00
name = "plasma-desktop";
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
buildInputs = [
2017-05-26 13:44:36 -07: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 qqc2-desktop-style
2016-04-21 09:01:22 -07:00
];
patches = [
./hwclock-path.patch
./tzdir.patch
];
postPatch = ''
sed '1i#include <cmath>' -i kcms/touchpad/src/backends/x11/synapticstouchpad.cpp
'';
2018-01-16 05:38:22 -08:00
CXXFLAGS = [
"-I${lib.getDev xorgserver}/include/xorg"
2020-11-24 07:29:28 -08:00
''-DNIXPKGS_HWCLOCK=\"${lib.getBin util-linux}/sbin/hwclock\"''
];
2016-04-21 09:01:22 -07:00
cmakeFlags = [
2017-05-26 13:44:36 -07:00
"-DEvdev_INCLUDE_DIRS=${lib.getDev xf86inputevdev}/include/xorg"
"-DSynaptics_INCLUDE_DIRS=${lib.getDev xf86inputsynaptics}/include/xorg"
2018-02-07 22:03:33 -08:00
"-DXORGLIBINPUT_INCLUDE_DIRS=${lib.getDev xf86inputlibinput}/include/xorg"
2016-04-21 09:01:22 -07:00
];
postInstall = ''
# Display ~/Desktop contents on the desktop by default.
2017-05-26 13:44:36 -07:00
sed -i "''${!outputBin}/share/plasma/shells/org.kde.plasma.desktop/contents/defaults" \
-e 's/Containment=org.kde.desktopcontainment/Containment=org.kde.plasma.folder/'
'';
2016-04-21 09:01:22 -07:00
}