nixpkgs/pkgs/desktops/lxqt/screengrab/default.nix

57 lines
1.0 KiB
Nix
Raw Normal View History

{ lib
, mkDerivation
, fetchFromGitHub
, cmake
2021-01-16 18:21:50 -08:00
, pkg-config
, qtbase
, qttools
, qtx11extras
, qtsvg
, kwindowsystem
, libqtxdg
2021-04-16 13:32:42 -07:00
, perl
, xorg
, autoPatchelfHook
, lxqtUpdateScript
}:
mkDerivation rec {
2019-02-05 15:14:54 -08:00
pname = "screengrab";
2021-04-16 13:32:42 -07:00
version = "2.2.0";
2017-11-01 19:09:14 -07:00
src = fetchFromGitHub {
owner = "lxqt";
2019-02-05 15:14:54 -08:00
repo = pname;
rev = version;
2021-04-16 13:32:42 -07:00
sha256 = "16dycq40lbvk6jvpj7zp85m23cgvh8nj38fz99gxjfzn2nz1gy4a";
};
2019-02-05 15:14:54 -08:00
nativeBuildInputs = [
cmake
2021-01-16 18:21:50 -08:00
pkg-config
2021-04-16 13:32:42 -07:00
perl # needed by LXQtTranslateDesktop.cmake
2019-02-05 15:14:54 -08:00
autoPatchelfHook # fix libuploader.so and libextedit.so not found
];
buildInputs = [
2017-02-25 07:44:29 -08:00
qtbase
qttools
qtx11extras
qtsvg
kwindowsystem
libqtxdg
xorg.libpthreadstubs
xorg.libXdmcp
];
passthru.updateScript = lxqtUpdateScript { inherit pname version src; };
meta = with lib; {
2020-01-22 13:16:56 -08:00
homepage = "https://github.com/lxqt/screengrab";
description = "Crossplatform tool for fast making screenshots";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
}