2020-04-25 19:01:05 +02:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2021-01-17 03:21:50 +01:00
|
|
|
, pkg-config
|
2020-04-25 19:01:05 +02:00
|
|
|
, qtbase
|
|
|
|
, qttools
|
|
|
|
, qtx11extras
|
|
|
|
, qtsvg
|
|
|
|
, kwindowsystem
|
|
|
|
, libqtxdg
|
2021-04-16 22:32:42 +02:00
|
|
|
, perl
|
2020-04-25 19:01:05 +02:00
|
|
|
, xorg
|
|
|
|
, autoPatchelfHook
|
2022-09-27 23:32:15 +02:00
|
|
|
, gitUpdater
|
2020-04-25 19:01:05 +02:00
|
|
|
}:
|
2016-10-15 00:48:32 +02:00
|
|
|
|
2019-07-27 23:05:17 +02:00
|
|
|
mkDerivation rec {
|
2019-02-06 00:14:54 +01:00
|
|
|
pname = "screengrab";
|
2022-11-09 14:11:12 +01:00
|
|
|
version = "2.5.0";
|
2016-10-15 00:48:32 +02:00
|
|
|
|
2017-11-02 03:09:14 +01:00
|
|
|
src = fetchFromGitHub {
|
2018-05-22 03:24:38 +02:00
|
|
|
owner = "lxqt";
|
2019-02-06 00:14:54 +01:00
|
|
|
repo = pname;
|
2017-09-28 00:52:18 +02:00
|
|
|
rev = version;
|
2022-11-09 14:11:12 +01:00
|
|
|
sha256 = "QEe1vOAeUDOlQfTh5/BvwBv9+v40NsuoMbC77+U6GCA=";
|
2016-10-15 00:48:32 +02:00
|
|
|
};
|
|
|
|
|
2019-02-06 00:14:54 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2021-01-17 03:21:50 +01:00
|
|
|
pkg-config
|
2021-04-16 22:32:42 +02:00
|
|
|
perl # needed by LXQtTranslateDesktop.cmake
|
2019-02-06 00:14:54 +01:00
|
|
|
autoPatchelfHook # fix libuploader.so and libextedit.so not found
|
|
|
|
];
|
2016-10-15 00:48:32 +02:00
|
|
|
|
|
|
|
buildInputs = [
|
2017-02-25 16:44:29 +01:00
|
|
|
qtbase
|
|
|
|
qttools
|
|
|
|
qtx11extras
|
|
|
|
qtsvg
|
|
|
|
kwindowsystem
|
|
|
|
libqtxdg
|
2016-10-15 00:48:32 +02:00
|
|
|
xorg.libpthreadstubs
|
|
|
|
xorg.libXdmcp
|
|
|
|
];
|
|
|
|
|
2022-09-27 23:32:15 +02:00
|
|
|
passthru.updateScript = gitUpdater { };
|
2020-04-26 16:53:59 +02:00
|
|
|
|
2019-07-27 23:05:17 +02:00
|
|
|
meta = with lib; {
|
2020-01-22 22:16:56 +01:00
|
|
|
homepage = "https://github.com/lxqt/screengrab";
|
2021-02-08 15:41:52 +01:00
|
|
|
description = "Crossplatform tool for fast making screenshots";
|
|
|
|
license = licenses.gpl2Plus;
|
2019-11-02 18:49:35 +01:00
|
|
|
platforms = platforms.linux;
|
2022-04-14 15:52:15 +02:00
|
|
|
maintainers = teams.lxqt.members;
|
2016-10-15 00:48:32 +02:00
|
|
|
};
|
|
|
|
}
|