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

55 lines
1006 B
Nix
Raw Normal View History

{ lib
, mkDerivation
, fetchFromGitHub
, cmake
, pkgconfig
, qtbase
, qttools
, qtx11extras
, qtsvg
, kwindowsystem
, libqtxdg
, xorg
, autoPatchelfHook
, lxqtUpdateScript
}:
mkDerivation rec {
2019-02-05 23:14:54 +00:00
pname = "screengrab";
2020-12-15 22:40:44 +00:00
version = "2.1.0";
2017-11-02 02:09:14 +00:00
src = fetchFromGitHub {
owner = "lxqt";
2019-02-05 23:14:54 +00:00
repo = pname;
rev = version;
2020-12-15 22:40:44 +00:00
sha256 = "0jy2izgl3jg6mnykpw7ji1fjv7dsivdfi6k6i6glrpa0z1p51gic";
};
2019-02-05 23:14:54 +00:00
nativeBuildInputs = [
cmake
pkgconfig
autoPatchelfHook # fix libuploader.so and libextedit.so not found
];
buildInputs = [
2017-02-25 15:44:29 +00:00
qtbase
qttools
qtx11extras
qtsvg
kwindowsystem
libqtxdg
xorg.libpthreadstubs
xorg.libXdmcp
];
passthru.updateScript = lxqtUpdateScript { inherit pname version src; };
meta = with lib; {
description = "Crossplatform tool for fast making screenshots";
2020-01-22 21:16:56 +00:00
homepage = "https://github.com/lxqt/screengrab";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
}