2021-07-15 21:18:43 +02:00
|
|
|
{ mkDerivation, lib
|
|
|
|
, extra-cmake-modules, kdoctools
|
|
|
|
, ki18n, xcb-util-cursor
|
|
|
|
, kconfig, kcoreaddons, kdbusaddons, kdeclarative, kio, kipi-plugins
|
|
|
|
, knotifications, kscreen, kwidgetsaddons, kwindowsystem, kxmlgui, libkipi
|
2023-03-17 23:58:24 +01:00
|
|
|
, qtx11extras, knewstuff, kwayland, qttools, kcolorpicker, kimageannotator
|
2023-03-17 23:39:35 +01:00
|
|
|
, qcoro, qtquickcontrols2, wayland, plasma-wayland-protocols, kpurpose, kpipewire
|
2023-04-19 07:55:40 +02:00
|
|
|
, wrapGAppsHook
|
2016-04-21 18:00:51 +02:00
|
|
|
}:
|
|
|
|
|
2017-05-16 17:56:41 +02:00
|
|
|
mkDerivation {
|
2020-12-25 00:05:07 +01:00
|
|
|
pname = "spectacle";
|
2023-04-19 07:55:40 +02:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools wrapGAppsHook ];
|
2017-06-21 15:52:16 +02:00
|
|
|
buildInputs = [
|
|
|
|
kconfig kcoreaddons kdbusaddons kdeclarative ki18n kio knotifications
|
|
|
|
kscreen kwidgetsaddons kwindowsystem kxmlgui libkipi qtx11extras xcb-util-cursor
|
2023-03-17 23:39:35 +01:00
|
|
|
knewstuff kwayland kcolorpicker kimageannotator qcoro qtquickcontrols2
|
|
|
|
wayland plasma-wayland-protocols kpurpose kpipewire
|
2017-05-16 17:56:41 +02:00
|
|
|
];
|
2019-05-28 21:46:47 +02:00
|
|
|
postPatch = ''
|
2020-07-13 22:12:54 +02:00
|
|
|
substituteInPlace desktop/org.kde.spectacle.desktop.cmake \
|
|
|
|
--replace "Exec=@QtBinariesDir@/qdbus" "Exec=${lib.getBin qttools}/bin/qdbus"
|
2019-05-28 21:46:47 +02:00
|
|
|
'';
|
2023-04-19 07:55:40 +02:00
|
|
|
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
2017-08-04 10:52:01 +02:00
|
|
|
propagatedUserEnvPkgs = [ kipi-plugins libkipi ];
|
2021-07-15 21:18:43 +02:00
|
|
|
meta = with lib; {
|
2021-09-18 11:48:23 +02:00
|
|
|
homepage = "https://apps.kde.org/spectacle/";
|
|
|
|
description = "Screenshot capture utility";
|
2021-07-15 21:18:43 +02:00
|
|
|
maintainers = with maintainers; [ ttuegel ];
|
|
|
|
};
|
2016-10-18 13:45:40 +02:00
|
|
|
}
|