nixpkgs/pkgs/applications/kde/spectacle.nix

25 lines
871 B
Nix
Raw Normal View History

{
2017-05-16 08:56:41 -07:00
mkDerivation, lib,
2017-05-17 12:26:11 -07:00
extra-cmake-modules, kdoctools,
ki18n, xcb-util-cursor,
kconfig, kcoreaddons, kdbusaddons, kdeclarative, kio, kipi-plugins,
2016-10-18 04:45:40 -07:00
knotifications, kscreen, kwidgetsaddons, kwindowsystem, kxmlgui, libkipi,
2019-10-12 02:31:46 -07:00
qtx11extras, knewstuff, kwayland, qttools
}:
2017-05-16 08:56:41 -07:00
mkDerivation {
2020-12-24 15:05:07 -08:00
pname = "spectacle";
2017-05-16 08:56:41 -07:00
meta = with lib; { maintainers = with maintainers; [ ttuegel ]; };
2017-05-17 12:26:11 -07:00
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
2017-06-21 06:52:16 -07:00
buildInputs = [
kconfig kcoreaddons kdbusaddons kdeclarative ki18n kio knotifications
kscreen kwidgetsaddons kwindowsystem kxmlgui libkipi qtx11extras xcb-util-cursor
2019-10-12 02:31:46 -07:00
knewstuff kwayland
2017-05-16 08:56:41 -07:00
];
postPatch = ''
2020-07-13 13:12:54 -07:00
substituteInPlace desktop/org.kde.spectacle.desktop.cmake \
--replace "Exec=@QtBinariesDir@/qdbus" "Exec=${lib.getBin qttools}/bin/qdbus"
'';
2017-08-04 01:52:01 -07:00
propagatedUserEnvPkgs = [ kipi-plugins libkipi ];
2016-10-18 04:45:40 -07:00
}