mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
58 lines
1 KiB
Nix
58 lines
1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, autoPatchelfHook
|
|
, gitUpdater
|
|
, kwindowsystem
|
|
, libXdmcp
|
|
, libpthreadstubs
|
|
, libqtxdg
|
|
, perl
|
|
, pkg-config
|
|
, qtbase
|
|
, qtsvg
|
|
, qttools
|
|
, wrapQtAppsHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "screengrab";
|
|
version = "2.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lxqt";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-PMe2NyIoc12n4l/oWPi3GL6pemuHyxL2HFBLTIyD690=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
perl # needed by LXQtTranslateDesktop.cmake
|
|
qttools
|
|
autoPatchelfHook # fix libuploader.so and libextedit.so not found
|
|
wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
kwindowsystem
|
|
libXdmcp
|
|
libpthreadstubs
|
|
libqtxdg
|
|
qtbase
|
|
qtsvg
|
|
];
|
|
|
|
passthru.updateScript = gitUpdater { };
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/lxqt/screengrab";
|
|
description = "Crossplatform tool for fast making screenshots";
|
|
mainProgram = "screengrab";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = teams.lxqt.members;
|
|
};
|
|
}
|