2020-04-24 23:36:52 +00:00
|
|
|
{
|
2020-09-25 04:45:31 +00:00
|
|
|
mkDerivation, lib,
|
2020-04-24 23:36:52 +00:00
|
|
|
extra-cmake-modules, kdoctools,
|
|
|
|
|
|
|
|
epoxy,libICE, libSM, libinput, libxkbcommon, udev, wayland, xcb-util-cursor,
|
|
|
|
xwayland,
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
qtdeclarative, qtmultimedia, qtquickcontrols2, qtscript, qtsensors,
|
|
|
|
qtvirtualkeyboard, qtx11extras,
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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,
|
2020-09-25 04:45:31 +00:00
|
|
|
plasma-framework, libcap, libdrm, mesa
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
# TODO (ttuegel): investigate qmlplugindump failure
|
|
|
|
|
|
|
|
mkDerivation {
|
|
|
|
name = "kwin";
|
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
|
|
|
buildInputs = [
|
|
|
|
epoxy libICE libSM libinput libxkbcommon udev wayland xcb-util-cursor
|
|
|
|
xwayland
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
qtdeclarative qtmultimedia qtquickcontrols2 qtscript qtsensors
|
|
|
|
qtvirtualkeyboard qtx11extras
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
breeze-qt5 kactivities kcmutils kcompletion kconfig kconfigwidgets
|
|
|
|
kcoreaddons kcrash kdeclarative kdecoration kglobalaccel ki18n kiconthemes
|
|
|
|
kidletime kinit kio knewstuff knotifications kpackage kscreenlocker kservice
|
|
|
|
kwayland kwidgetsaddons kwindowsystem kxmlgui plasma-framework
|
2020-05-15 21:57:56 +00:00
|
|
|
libcap libdrm mesa
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
outputs = [ "bin" "dev" "out" ];
|
|
|
|
patches = [
|
|
|
|
./0001-follow-symlinks.patch
|
|
|
|
./0002-xwayland.patch
|
|
|
|
];
|
|
|
|
CXXFLAGS = [
|
|
|
|
''-DNIXPKGS_XWAYLAND=\"${lib.getBin xwayland}/bin/Xwayland\"''
|
|
|
|
];
|
|
|
|
cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF" ];
|
|
|
|
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 ''${!outputBin}/share/kservicetypes5/kwineffect.desktop \
|
|
|
|
''${!outputBin}/share/kservicetypes5/kwin-effect.desktop
|
|
|
|
ln -s ''${!outputBin}/share/kservicetypes5/kwinscript.desktop \
|
|
|
|
''${!outputBin}/share/kservicetypes5/kwin-script.desktop
|
|
|
|
'';
|
|
|
|
}
|