mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 09:13:17 +00:00
fd29f6685f
Stay consistent with other multiple output packages.
46 lines
1.7 KiB
Nix
46 lines
1.7 KiB
Nix
{
|
|
mkDerivation, lib, copyPathsToStore,
|
|
extra-cmake-modules, kdoctools,
|
|
|
|
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,
|
|
}:
|
|
|
|
mkDerivation {
|
|
name = "kwin";
|
|
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
|
|
kcoreaddons kcrash kdeclarative kdecoration kglobalaccel ki18n kiconthemes
|
|
kidletime kinit kio knewstuff knotifications kpackage kscreenlocker kservice
|
|
kwayland kwidgetsaddons kwindowsystem kxmlgui plasma-framework
|
|
];
|
|
outputs = [ "bin" "dev" "out" ];
|
|
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
|
NIX_CFLAGS_COMPILE = [
|
|
''-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
|
|
'';
|
|
}
|