scrot: modernize, adopt (#520768)
This commit is contained in:
@@ -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;
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user