2016-08-04 16:46:35 +02:00
|
|
|
{
|
2018-01-28 17:54:51 +01:00
|
|
|
mkDerivation, lib, copyPathsToStore, fetchpatch,
|
2017-02-26 13:49:15 +01:00
|
|
|
extra-cmake-modules, kdoctools,
|
2017-05-26 22:44:36 +02:00
|
|
|
|
|
|
|
epoxy,libICE, libSM, libinput, libxkbcommon, udev, wayland, xcb-util-cursor,
|
|
|
|
xwayland,
|
|
|
|
|
|
|
|
qtdeclarative, qtmultimedia, qtscript, qtx11extras,
|
|
|
|
|
|
|
|
breeze-qt5, kactivities, kcompletion, kcmutils, kconfig, kconfigwidgets,
|
|
|
|
kcoreaddons, kcrash, kdeclarative, kdecoration, kglobalaccel, ki18n,
|
|
|
|
kiconthemes, kidletime, kinit, kio, knewstuff, knotifications, kpackage,
|
|
|
|
kscreenlocker, kservice, kwayland, kwidgetsaddons, kwindowsystem, kxmlgui,
|
2018-02-08 07:03:33 +01:00
|
|
|
plasma-framework, qtsensors, libcap
|
2016-04-21 18:01:22 +02:00
|
|
|
}:
|
|
|
|
|
2017-05-15 18:44:58 +02:00
|
|
|
mkDerivation {
|
2016-04-21 18:01:22 +02:00
|
|
|
name = "kwin";
|
2017-05-26 22:44:36 +02:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
|
|
|
buildInputs = [
|
|
|
|
epoxy libICE libSM libinput libxkbcommon udev wayland xcb-util-cursor
|
|
|
|
xwayland
|
|
|
|
|
2018-02-08 07:03:33 +01:00
|
|
|
qtdeclarative qtmultimedia qtscript qtx11extras qtsensors
|
2017-05-26 22:44:36 +02:00
|
|
|
|
|
|
|
breeze-qt5 kactivities kcmutils kcompletion kconfig kconfigwidgets
|
2016-08-04 16:46:35 +02:00
|
|
|
kcoreaddons kcrash kdeclarative kdecoration kglobalaccel ki18n kiconthemes
|
|
|
|
kidletime kinit kio knewstuff knotifications kpackage kscreenlocker kservice
|
2017-05-26 22:44:36 +02:00
|
|
|
kwayland kwidgetsaddons kwindowsystem kxmlgui plasma-framework
|
2018-02-08 07:03:33 +01:00
|
|
|
libcap
|
2016-04-21 18:01:22 +02:00
|
|
|
];
|
2017-09-27 02:00:23 +02:00
|
|
|
outputs = [ "bin" "dev" "out" ];
|
2018-02-08 07:03:33 +01:00
|
|
|
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series) ++ [
|
|
|
|
# This patch should be removed in 5.12.2
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/KDE/kwin/commit/6e5f5d92daab4c60f7bf241d90a91b3bea27acfd.patch";
|
|
|
|
sha256 = "1yq9wjvch46z7qx051s0ws0gyqbqhkvx7xl4pymd97vz8v6gnx4x";
|
|
|
|
})
|
|
|
|
];
|
2018-01-16 14:38:07 +01:00
|
|
|
CXXFLAGS = [
|
|
|
|
''-DNIXPKGS_XWAYLAND=\"${lib.getBin xwayland}/bin/Xwayland\"''
|
2017-05-26 22:44:07 +02:00
|
|
|
];
|
2016-04-21 18:01:22 +02:00
|
|
|
cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF" ];
|
2017-04-14 13:31:19 +02: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!
|
2017-05-26 22:44:36 +02:00
|
|
|
ln -s ''${!outputBin}/share/kservicetypes5/kwineffect.desktop \
|
|
|
|
''${!outputBin}/share/kservicetypes5/kwin-effect.desktop
|
|
|
|
ln -s ''${!outputBin}/share/kservicetypes5/kwinscript.desktop \
|
|
|
|
''${!outputBin}/share/kservicetypes5/kwin-script.desktop
|
2017-04-14 13:31:19 +02:00
|
|
|
'';
|
2016-04-21 18:01:22 +02:00
|
|
|
}
|