2021-07-16 19:40:57 +00: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-24 00:07:29 +00:00
|
|
|
, qtx11extras, knewstuff, kwayland, qttools, kcolorpicker, kimageannotator
|
2023-04-29 16:46:19 +00:00
|
|
|
, qcoro, qtquickcontrols2, wayland, plasma-wayland-protocols, kpurpose, kpipewire
|
|
|
|
, wrapGAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation {
|
2021-01-05 17:05:55 +00:00
|
|
|
pname = "spectacle";
|
2023-04-29 16:46:19 +00:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools wrapGAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
kconfig kcoreaddons kdbusaddons kdeclarative ki18n kio knotifications
|
|
|
|
kscreen kwidgetsaddons kwindowsystem kxmlgui libkipi qtx11extras xcb-util-cursor
|
2023-04-29 16:46:19 +00:00
|
|
|
knewstuff kwayland kcolorpicker kimageannotator qcoro qtquickcontrols2
|
|
|
|
wayland plasma-wayland-protocols kpurpose kpipewire
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
postPatch = ''
|
2020-07-18 16:06:22 +00:00
|
|
|
substituteInPlace desktop/org.kde.spectacle.desktop.cmake \
|
|
|
|
--replace "Exec=@QtBinariesDir@/qdbus" "Exec=${lib.getBin qttools}/bin/qdbus"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedUserEnvPkgs = [ kipi-plugins libkipi ];
|
2021-07-16 19:40:57 +00:00
|
|
|
meta = with lib; {
|
2021-09-28 08:13:01 +00:00
|
|
|
homepage = "https://apps.kde.org/spectacle/";
|
|
|
|
description = "Screenshot capture utility";
|
2021-07-16 19:40:57 +00:00
|
|
|
maintainers = with maintainers; [ ttuegel ];
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|