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

46 lines
1.7 KiB
Nix
Raw Normal View History

2016-08-04 16:46:35 +02:00
{
mkDerivation, lib, copyPathsToStore,
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,
plasma-framework,
2016-04-21 18:01:22 +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
qtdeclarative qtmultimedia qtscript qtx11extras
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
2016-04-21 18:01:22 +02:00
];
2017-05-26 22:44:36 +02:00
outputs = [ "out" "dev" "bin" ];
2016-08-04 16:46:35 +02:00
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
NIX_CFLAGS_COMPILE = [
''-DNIXPKGS_XWAYLAND="${lib.getBin xwayland}/bin/Xwayland"''
];
2016-04-21 18:01:22 +02: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 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
'';
2016-04-21 18:01:22 +02:00
}