nixpkgs/pkgs/applications/kde/spectacle.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.3 KiB
Nix
Raw Normal View History

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