2021-07-15 22:18:43 +03:00
|
|
|
{ mkDerivation, lib
|
|
|
|
, extra-cmake-modules, kdoctools
|
|
|
|
, ki18n, xcb-util-cursor
|
|
|
|
, kconfig, kcoreaddons, kdbusaddons, kdeclarative, kio, kipi-plugins
|
|
|
|
, knotifications, kscreen, kwidgetsaddons, kwindowsystem, kxmlgui, libkipi
|
|
|
|
, qtbase, qtx11extras, knewstuff, kwayland, qttools, kcolorpicker, kimageannotator
|
2016-04-21 19:00:51 +03:00
|
|
|
}:
|
|
|
|
|
2017-05-16 18:56:41 +03:00
|
|
|
mkDerivation {
|
2020-12-25 02:05:07 +03:00
|
|
|
pname = "spectacle";
|
2017-05-17 22:26:11 +03:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
2017-06-21 16:52:16 +03:00
|
|
|
buildInputs = [
|
|
|
|
kconfig kcoreaddons kdbusaddons kdeclarative ki18n kio knotifications
|
|
|
|
kscreen kwidgetsaddons kwindowsystem kxmlgui libkipi qtx11extras xcb-util-cursor
|
2021-07-12 13:45:57 +03:00
|
|
|
knewstuff kwayland kcolorpicker kimageannotator
|
2017-05-16 18:56:41 +03:00
|
|
|
];
|
2019-05-28 22:46:47 +03:00
|
|
|
postPatch = ''
|
2020-07-13 23:12:54 +03:00
|
|
|
substituteInPlace desktop/org.kde.spectacle.desktop.cmake \
|
|
|
|
--replace "Exec=@QtBinariesDir@/qdbus" "Exec=${lib.getBin qttools}/bin/qdbus"
|
2019-05-28 22:46:47 +03:00
|
|
|
'';
|
2017-08-04 11:52:01 +03:00
|
|
|
propagatedUserEnvPkgs = [ kipi-plugins libkipi ];
|
2021-07-15 22:18:43 +03:00
|
|
|
meta = with lib; {
|
2021-09-18 12:48:23 +03:00
|
|
|
homepage = "https://apps.kde.org/spectacle/";
|
|
|
|
description = "Screenshot capture utility";
|
2021-07-15 22:18:43 +03:00
|
|
|
maintainers = with maintainers; [ ttuegel ];
|
|
|
|
broken = versionOlder qtbase.version "5.15";
|
|
|
|
};
|
2016-10-18 14:45:40 +03:00
|
|
|
}
|