1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/desktops/plasma-5/plasma-desktop/default.nix

46 lines
2 KiB
Nix
Raw Normal View History

2016-11-05 17:14:03 +00:00
{
plasmaPackage, lib, copyPathsToStore,
extra-cmake-modules, kdoctools,
2016-11-05 17:14:03 +00: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 16:51:20 +00:00
plasma-workspace, qtdeclarative, qtquickcontrols, qtquickcontrols2, qtsvg,
qtx11extras, xf86inputevdev, xf86inputsynaptics, xinput, xkeyboard_config,
xorgserver,
utillinux
2016-04-21 17:01:22 +01:00
}:
plasmaPackage rec {
name = "plasma-desktop";
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
buildInputs = [
2016-11-05 17:14:03 +00:00
attica boost fontconfig ibus kcmutils kdbusaddons kded kitemmodels knewstuff
knotifications knotifyconfig kwallet libcanberra_kde libXcursor
libpulseaudio libXft libxkbfile phonon qtsvg xf86inputevdev
2016-07-10 10:33:21 +01: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 16:51:20 +00:00
qtquickcontrols qtquickcontrols2 qtx11extras ksysguard
2016-04-21 17:01:22 +01:00
];
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" ];
2016-04-21 17:01:22 +01:00
cmakeFlags = [
2016-05-23 12:00:21 +01:00
"-DEvdev_INCLUDE_DIRS=${xf86inputevdev.dev}/include/xorg"
"-DSynaptics_INCLUDE_DIRS=${xf86inputsynaptics.dev}/include/xorg"
2016-04-21 17:01:22 +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 17:01:22 +01:00
}