diff --git a/pkgs/by-name/sc/scrot/package.nix b/pkgs/by-name/sc/scrot/package.nix index 3fc1fccb4a66..61de0243034e 100644 --- a/pkgs/by-name/sc/scrot/package.nix +++ b/pkgs/by-name/sc/scrot/package.nix @@ -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; }; })