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

60 lines
2.1 KiB
Nix
Raw Normal View History

{ plasmaPackage, substituteAll, extra-cmake-modules, kdoctools
, attica, baloo, boost, fontconfig, kactivities, kauth, kcmutils
, kdbusaddons, kdeclarative, kded, kdelibs4support, kemoticons
, kglobalaccel, ki18n, kitemmodels, knewstuff, knotifications
, knotifyconfig, kpeople, krunner, kwallet, kwin, phonon
, plasma-framework, plasma-workspace, qtdeclarative, qtx11extras
, qtsvg, libXcursor, libXft, libxkbfile, xf86inputevdev
, xf86inputsynaptics, xinput, xkeyboard_config, xorgserver
2015-10-18 07:24:59 -07:00
, libcanberra_kde, libpulseaudio, makeQtWrapper, utillinux
, qtquick1, qtquickcontrols
2015-09-27 08:03:00 -07:00
}:
plasmaPackage rec {
2015-09-27 08:03:00 -07:00
name = "plasma-desktop";
nativeBuildInputs = [
extra-cmake-modules
kdoctools
2015-10-18 07:24:59 -07:00
makeQtWrapper
2015-09-27 08:03:00 -07:00
];
buildInputs = [
2015-10-10 10:30:20 -07:00
attica boost fontconfig kcmutils kdbusaddons kded kitemmodels
knewstuff knotifications knotifyconfig kwallet libcanberra_kde
libXcursor libpulseaudio libXft libxkbfile phonon
qtsvg xf86inputevdev xf86inputsynaptics
xkeyboard_config xinput
2015-09-27 08:03:00 -07:00
];
2015-10-10 09:20:49 -07:00
propagatedBuildInputs = [
baloo kactivities kauth kdeclarative kdelibs4support kemoticons
2015-10-11 08:15:50 -07:00
kglobalaccel ki18n kpeople krunner kwin plasma-framework
plasma-workspace qtdeclarative qtquick1 qtquickcontrols
qtx11extras
2015-10-10 09:20:49 -07:00
];
# All propagatedBuildInputs should be present in the profile because
# wrappers cannot be used here.
propagatedUserEnvPkgs = propagatedBuildInputs;
2015-09-27 08:03:00 -07:00
patches = [
(substituteAll {
src = ./0001-hwclock.patch;
hwclock = "${utillinux}/sbin/hwclock";
})
./0002-zoneinfo.patch
./0003-qt-5.5-QML-import-paths.patch
2015-09-27 08:03:00 -07:00
];
NIX_CFLAGS_COMPILE = [ "-I${xorgserver}/include/xorg" ];
cmakeFlags = [
"-DEvdev_INCLUDE_DIRS=${xf86inputevdev}/include/xorg"
"-DSynaptics_INCLUDE_DIRS=${xf86inputsynaptics}/include/xorg"
];
postInstall = ''
2015-10-18 07:24:59 -07:00
wrapQtProgram "$out/bin/kaccess"
wrapQtProgram "$out/bin/solid-action-desktop-gen"
wrapQtProgram "$out/bin/knetattach"
wrapQtProgram "$out/bin/krdb"
wrapQtProgram "$out/bin/kapplymousetheme"
wrapQtProgram "$out/bin/kfontinst"
wrapQtProgram "$out/bin/kcm-touchpad-list-devices"
wrapQtProgram "$out/bin/kfontview"
2015-09-27 08:03:00 -07:00
'';
}