2020-04-25 18:01:05 +01:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2021-01-17 02:21:50 +00:00
|
|
|
, pkg-config
|
2020-04-25 18:01:05 +01:00
|
|
|
, qtbase
|
|
|
|
, qttools
|
|
|
|
, qtx11extras
|
|
|
|
, qtsvg
|
|
|
|
, kwindowsystem
|
|
|
|
, libqtxdg
|
|
|
|
, xorg
|
|
|
|
, autoPatchelfHook
|
2020-04-26 15:53:59 +01:00
|
|
|
, lxqtUpdateScript
|
2020-04-25 18:01:05 +01:00
|
|
|
}:
|
2016-10-14 23:48:32 +01:00
|
|
|
|
2019-07-27 22:05:17 +01:00
|
|
|
mkDerivation rec {
|
2019-02-05 23:14:54 +00:00
|
|
|
pname = "screengrab";
|
2020-12-15 22:40:44 +00:00
|
|
|
version = "2.1.0";
|
2016-10-14 23:48:32 +01:00
|
|
|
|
2017-11-02 02:09:14 +00:00
|
|
|
src = fetchFromGitHub {
|
2018-05-22 02:24:38 +01:00
|
|
|
owner = "lxqt";
|
2019-02-05 23:14:54 +00:00
|
|
|
repo = pname;
|
2017-09-27 23:52:18 +01:00
|
|
|
rev = version;
|
2020-12-15 22:40:44 +00:00
|
|
|
sha256 = "0jy2izgl3jg6mnykpw7ji1fjv7dsivdfi6k6i6glrpa0z1p51gic";
|
2016-10-14 23:48:32 +01:00
|
|
|
};
|
|
|
|
|
2019-02-05 23:14:54 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2019-02-05 23:14:54 +00:00
|
|
|
autoPatchelfHook # fix libuploader.so and libextedit.so not found
|
|
|
|
];
|
2016-10-14 23:48:32 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
2017-02-25 15:44:29 +00:00
|
|
|
qtbase
|
|
|
|
qttools
|
|
|
|
qtx11extras
|
|
|
|
qtsvg
|
|
|
|
kwindowsystem
|
|
|
|
libqtxdg
|
2016-10-14 23:48:32 +01:00
|
|
|
xorg.libpthreadstubs
|
|
|
|
xorg.libXdmcp
|
|
|
|
];
|
|
|
|
|
2020-04-26 15:53:59 +01:00
|
|
|
passthru.updateScript = lxqtUpdateScript { inherit pname version src; };
|
|
|
|
|
2019-07-27 22:05:17 +01: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";
|
|
|
|
license = licenses.gpl2Plus;
|
2019-11-02 17:49:35 +00:00
|
|
|
platforms = platforms.linux;
|
2016-10-14 23:48:32 +01:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|