2016-08-04 14:46:35 +00:00
|
|
|
{
|
2020-11-04 20:48:35 +00:00
|
|
|
mkDerivation, lib, fetchpatch,
|
2017-02-26 12:49:15 +00:00
|
|
|
extra-cmake-modules, kdoctools,
|
2017-05-26 20:44:36 +00:00
|
|
|
|
|
|
|
epoxy,libICE, libSM, libinput, libxkbcommon, udev, wayland, xcb-util-cursor,
|
|
|
|
xwayland,
|
|
|
|
|
2020-09-01 10:27:19 +00:00
|
|
|
qtdeclarative, qtmultimedia, qtquickcontrols2, qtscript, qtsensors,
|
|
|
|
qtvirtualkeyboard, qtx11extras,
|
2017-05-26 20:44:36 +00:00
|
|
|
|
|
|
|
breeze-qt5, kactivities, kcompletion, kcmutils, kconfig, kconfigwidgets,
|
|
|
|
kcoreaddons, kcrash, kdeclarative, kdecoration, kglobalaccel, ki18n,
|
|
|
|
kiconthemes, kidletime, kinit, kio, knewstuff, knotifications, kpackage,
|
2021-05-07 15:57:25 +00:00
|
|
|
krunner, kscreenlocker, kservice, kwayland, kwayland-server, kwidgetsaddons,
|
|
|
|
kwindowsystem, kxmlgui, plasma-framework,
|
|
|
|
libcap, libdrm, mesa, pipewire
|
2016-04-21 16:01:22 +00:00
|
|
|
}:
|
|
|
|
|
2020-01-27 14:29:51 +00:00
|
|
|
# TODO (ttuegel): investigate qmlplugindump failure
|
|
|
|
|
2017-05-15 16:44:58 +00:00
|
|
|
mkDerivation {
|
2016-04-21 16:01:22 +00:00
|
|
|
name = "kwin";
|
2017-05-26 20:44:36 +00:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
|
|
|
buildInputs = [
|
|
|
|
epoxy libICE libSM libinput libxkbcommon udev wayland xcb-util-cursor
|
|
|
|
xwayland
|
2021-05-07 15:57:25 +00:00
|
|
|
libcap libdrm mesa pipewire
|
2017-05-26 20:44:36 +00:00
|
|
|
|
2020-09-01 10:27:19 +00:00
|
|
|
qtdeclarative qtmultimedia qtquickcontrols2 qtscript qtsensors
|
|
|
|
qtvirtualkeyboard qtx11extras
|
2017-05-26 20:44:36 +00:00
|
|
|
|
|
|
|
breeze-qt5 kactivities kcmutils kcompletion kconfig kconfigwidgets
|
2016-08-04 14:46:35 +00:00
|
|
|
kcoreaddons kcrash kdeclarative kdecoration kglobalaccel ki18n kiconthemes
|
2021-05-07 15:57:25 +00:00
|
|
|
kidletime kinit kio knewstuff knotifications kpackage krunner kscreenlocker
|
|
|
|
kservice kwayland kwayland-server kwidgetsaddons kwindowsystem kxmlgui
|
|
|
|
plasma-framework
|
|
|
|
|
2016-04-21 16:01:22 +00:00
|
|
|
];
|
2020-12-03 21:39:53 +00:00
|
|
|
outputs = [ "dev" "out" ];
|
2020-01-27 14:29:51 +00:00
|
|
|
patches = [
|
|
|
|
./0001-follow-symlinks.patch
|
|
|
|
./0002-xwayland.patch
|
2020-12-23 15:08:07 +00:00
|
|
|
./0003-plugins-qpa-allow-using-nixos-wrapper.patch
|
2021-03-16 19:09:32 +00:00
|
|
|
./0001-NixOS-Unwrap-executable-name-for-.desktop-search.patch
|
2020-01-27 14:29:51 +00:00
|
|
|
];
|
2018-01-16 13:38:07 +00:00
|
|
|
CXXFLAGS = [
|
|
|
|
''-DNIXPKGS_XWAYLAND=\"${lib.getBin xwayland}/bin/Xwayland\"''
|
2017-05-26 20:44:07 +00:00
|
|
|
];
|
2016-04-21 16:01:22 +00:00
|
|
|
cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF" ];
|
2017-04-14 11:31:19 +00: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 20:44:36 +00: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 11:31:19 +00:00
|
|
|
'';
|
2016-04-21 16:01:22 +00:00
|
|
|
}
|