diff --git a/pkgs/by-name/ha/havn/package.nix b/pkgs/by-name/ha/havn/package.nix index 9b80f6bfde08..2251bb0a3cbf 100644 --- a/pkgs/by-name/ha/havn/package.nix +++ b/pkgs/by-name/ha/havn/package.nix @@ -1,21 +1,27 @@ { lib, fetchFromGitHub, + nix-update-script, rustPlatform, + versionCheckHook, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "havn"; - version = "0.3.8"; + version = "0.3.9"; + + __structuredAttrs = true; src = fetchFromGitHub { owner = "mrjackwills"; repo = "havn"; tag = "v${finalAttrs.version}"; - hash = "sha256-7VRYZK9QzKmhK4LPFRzf6QwgMwAC9aa6/+Fu/4SLQoo="; + hash = "sha256-G+aUTzlpUfVTkoftp1igCPeKaQpbS4CyydoitcLzxjk="; }; - cargoHash = "sha256-pGfuKfjU/J52GgX8VmnNi9LLRfhQJagVzADn1bkUSvI="; + cargoHash = "sha256-G4DNr69FKiLI3vrEX3AMPn3DdWzPbxA7t2vw3bJtW94="; + + nativeInstallCheckInputs = [ versionCheckHook ]; checkFlags = [ # Skip tests that require network access @@ -25,10 +31,14 @@ rustPlatform.buildRustPackage (finalAttrs: { "--skip=terminal::print::tests::test_terminal_monochrome_false" ]; + doInstallCheck = true; + + passthru.updateScript = nix-update-script { }; + meta = { homepage = "https://github.com/mrjackwills/havn"; description = "Fast configurable port scanner with reasonable defaults"; - changelog = "https://github.com/mrjackwills/havn/blob/v${finalAttrs.version}/CHANGELOG.md"; + changelog = "https://github.com/mrjackwills/havn/blob/v${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ luftmensch-luftmensch ]; mainProgram = "havn";