2016-08-04 15:46:35 +01:00
|
|
|
{
|
2017-05-15 17:44:58 +01:00
|
|
|
mkDerivation, lib, copyPathsToStore,
|
2017-02-26 12:49:15 +00:00
|
|
|
extra-cmake-modules, kdoctools,
|
2016-08-04 15:46:35 +01:00
|
|
|
breeze-qt5, epoxy, kactivities, kcompletion, kcmutils, kconfig,
|
|
|
|
kconfigwidgets, kcoreaddons, kcrash, kdeclarative, kdecoration, kglobalaccel,
|
|
|
|
ki18n, kiconthemes, kidletime, kinit, kio, knewstuff, knotifications,
|
|
|
|
kpackage, kscreenlocker, kservice, kwayland, kwidgetsaddons, kwindowsystem,
|
2017-02-28 16:51:20 +00:00
|
|
|
kxmlgui, libICE, libSM, libinput, libxkbcommon, plasma-framework,
|
|
|
|
qtdeclarative, qtmultimedia, qtscript, qtx11extras, udev, wayland,
|
|
|
|
xcb-util-cursor, xwayland
|
2016-04-21 17:01:22 +01:00
|
|
|
}:
|
|
|
|
|
2017-05-15 17:44:58 +01:00
|
|
|
mkDerivation {
|
2016-04-21 17:01:22 +01:00
|
|
|
name = "kwin";
|
|
|
|
nativeBuildInputs = [
|
2017-02-26 12:49:15 +00:00
|
|
|
extra-cmake-modules
|
2016-04-21 17:01:22 +01:00
|
|
|
kdoctools
|
|
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
2016-08-04 15:46:35 +01:00
|
|
|
breeze-qt5 epoxy kactivities kcmutils kcompletion kconfig kconfigwidgets
|
|
|
|
kcoreaddons kcrash kdeclarative kdecoration kglobalaccel ki18n kiconthemes
|
|
|
|
kidletime kinit kio knewstuff knotifications kpackage kscreenlocker kservice
|
2017-02-28 16:51:20 +00:00
|
|
|
kwayland kwidgetsaddons kwindowsystem kxmlgui libICE libSM libxkbcommon
|
|
|
|
libinput plasma-framework qtdeclarative qtmultimedia qtscript qtx11extras
|
|
|
|
udev wayland xcb-util-cursor xwayland
|
2016-04-21 17:01:22 +01:00
|
|
|
];
|
2016-08-04 15:46:35 +01:00
|
|
|
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace main_wayland.cpp \
|
|
|
|
--subst-var-by xwayland ${lib.getBin xwayland}/bin/Xwayland
|
|
|
|
'';
|
2016-04-21 17:01:22 +01:00
|
|
|
cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF" ];
|
2017-04-14 12:31:19 +01:00
|
|
|
postInstall = ''
|
|
|
|
# Some package(s) refer to these service types by the wrong name.
|
|
|
|
# I would prefer to patch those packages, but I cannot find them!
|
|
|
|
ln -s $out/share/kservicetypes5/kwineffect.desktop \
|
|
|
|
$out/share/kservicetypes5/kwin-effect.desktop
|
|
|
|
ln -s $out/share/kservicetypes5/kwinscript.desktop \
|
|
|
|
$out/share/kservicetypes5/kwin-script.desktop
|
|
|
|
'';
|
2016-04-21 17:01:22 +01:00
|
|
|
}
|