scrot: modernize, adopt (#520768)

This commit is contained in:
Yohann Boniface
2026-05-21 21:43:09 +00:00
committed by GitHub
+10 -3
View File
@@ -12,17 +12,21 @@
libxinerama,
pkg-config,
libbsd,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "scrot";
version = "1.12.1";
strictDeps = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "resurrecting-open-source-projects";
repo = "scrot";
rev = finalAttrs.version;
sha256 = "sha256-ExZH+bjpEvdbSYM8OhV+cyn4j+0YrHp5/b+HsHKAHCA=";
tag = finalAttrs.version;
hash = "sha256-ExZH+bjpEvdbSYM8OhV+cyn4j+0YrHp5/b+HsHKAHCA=";
};
nativeBuildInputs = [
@@ -41,12 +45,15 @@ stdenv.mkDerivation (finalAttrs: {
libbsd
];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
meta = {
homepage = "https://github.com/resurrecting-open-source-projects/scrot";
description = "Command-line screen capture utility";
mainProgram = "scrot";
platforms = lib.platforms.linux;
maintainers = [ ];
maintainers = with lib.maintainers; [ ethancedwards8 ];
license = lib.licenses.mitAdvertising;
};
})