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