nixpkgs/pkgs/desktops/kde-5/plasma-5.6/plasma-workspace.nix
2016-04-30 12:20:12 -05:00

56 lines
1.9 KiB
Nix

{ plasmaPackage, lib
, extra-cmake-modules, kdoctools
, baloo, kactivities, kcmutils, kconfig, kcrash, kdbusaddons, kdeclarative
, kdelibs4support, kdesu, kdewebkit, kglobalaccel, kidletime, kjsembed, knewstuff
, knotifyconfig, kpackage, krunner, ktexteditor, ktextwidgets, kwallet, kwayland
, kwin, kxmlrpcclient, libdbusmenu, libkscreen, libksysguard, libSM, libXcursor
, networkmanager-qt, pam, phonon, plasma-framework, qtquick1, qtquickcontrols
, qtscript, qtx11extras, solid, wayland
}:
plasmaPackage {
name = "plasma-workspace";
nativeBuildInputs = [
extra-cmake-modules
kdoctools
];
propagatedBuildInputs = [
baloo kactivities kcmutils kconfig kcrash kdbusaddons kdeclarative
kdelibs4support kdesu kdewebkit kglobalaccel kidletime kjsembed knewstuff
knotifyconfig kpackage krunner ktexteditor ktextwidgets kwallet kwayland
kwin kxmlrpcclient libdbusmenu libkscreen libksysguard libSM libXcursor
networkmanager-qt pam phonon plasma-framework qtquick1 qtquickcontrols
qtscript qtx11extras solid wayland
];
postPatch = ''
substituteInPlace startkde/kstartupconfig/kstartupconfig.cpp \
--replace kdostartupconfig5 $out/bin/kdostartupconfig5
'';
postInstall = ''
rm "$out/bin/startkde"
rm "$out/bin/startplasmacompositor"
rm "$out/lib/libexec/startplasma"
rm -r "$out/share/wayland-sessions"
'';
preFixup = ''
wrapQtProgram $out/bin/kcheckrunning
wrapQtProgram $out/bin/kcminit
wrapQtProgram $out/bin/kcminit_startup
wrapQtProgram $out/bin/kdostartupconfig5
wrapQtProgram $out/bin/klipper
wrapQtProgram $out/bin/krunner
wrapQtProgram $out/bin/ksmserver
wrapQtProgram $out/bin/ksplashqml
wrapQtProgram $out/bin/kstartupconfig5
wrapQtProgram $out/bin/kuiserver5
wrapQtProgram $out/bin/plasmashell
wrapQtProgram $out/bin/plasmawindowed
wrapQtProgram $out/bin/systemmonitor
wrapQtProgram $out/bin/xembedsniproxy
'';
}