nixpkgs/pkgs/desktops/plasma-5/kwin/default.nix

59 lines
2.2 KiB
Nix
Raw Normal View History

2016-08-04 15:46:35 +01:00
{
2020-11-04 20:48:35 +00:00
mkDerivation, lib, fetchpatch,
extra-cmake-modules, kdoctools,
2017-05-26 21:44:36 +01:00
epoxy,libICE, libSM, libinput, libxkbcommon, udev, wayland, xcb-util-cursor,
xwayland,
qtdeclarative, qtmultimedia, qtquickcontrols2, qtscript, qtsensors,
qtvirtualkeyboard, qtx11extras,
2017-05-26 21:44:36 +01: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,
plasma-framework, libcap, libdrm, mesa
2016-04-21 17:01:22 +01:00
}:
2020-01-27 14:29:51 +00:00
# TODO (ttuegel): investigate qmlplugindump failure
mkDerivation {
2016-04-21 17:01:22 +01:00
name = "kwin";
2017-05-26 21:44:36 +01:00
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
buildInputs = [
epoxy libICE libSM libinput libxkbcommon udev wayland xcb-util-cursor
xwayland
qtdeclarative qtmultimedia qtquickcontrols2 qtscript qtsensors
qtvirtualkeyboard qtx11extras
2017-05-26 21:44:36 +01:00
breeze-qt5 kactivities kcmutils kcompletion kconfig kconfigwidgets
2016-08-04 15:46:35 +01:00
kcoreaddons kcrash kdeclarative kdecoration kglobalaccel ki18n kiconthemes
kidletime kinit kio knewstuff knotifications kpackage kscreenlocker kservice
2017-05-26 21:44:36 +01:00
kwayland kwidgetsaddons kwindowsystem kxmlgui plasma-framework
libcap libdrm mesa
2016-04-21 17:01:22 +01:00
];
outputs = [ "bin" "dev" "out" ];
2020-01-27 14:29:51 +00:00
patches = [
./0001-follow-symlinks.patch
./0002-xwayland.patch
2020-11-04 20:48:35 +00:00
(fetchpatch { # included in >= 5.18.6
name = "EGL_TEXTURE_Y_XUXV_WL.diff";
url = "https://github.com/KDE/kwin/commit/2c76cc478.diff";
sha256 = "1ywaky05h5j1x758q3yhp3ap45ispffghyxynqz5lybl5n6yyxhy";
})
2020-01-27 14:29:51 +00:00
];
2018-01-16 13:38:07 +00:00
CXXFLAGS = [
''-DNIXPKGS_XWAYLAND=\"${lib.getBin xwayland}/bin/Xwayland\"''
];
2016-04-21 17:01:22 +01:00
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!
2017-05-26 21:44:36 +01: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
'';
2016-04-21 17:01:22 +01:00
}