depot/pkgs/desktops/lxqt/screengrab/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

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.9.0";
src = fetchFromGitHub {
owner = "lxqt";
repo = pname;
rev = version;
hash = "sha256-V5ulRkckeSX2EsYmhmA9phVssDtix31M5oZXkOgF660=";
};
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;
};
}