diff --git a/pkgs/by-name/pa/pay-respects/package.nix b/pkgs/by-name/pa/pay-respects/package.nix index 0c9ffdb2eb4e..a98ae0d5c4e7 100644 --- a/pkgs/by-name/pa/pay-respects/package.nix +++ b/pkgs/by-name/pa/pay-respects/package.nix @@ -2,8 +2,9 @@ lib, fetchFromGitea, rustPlatform, + versionCheckHook, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (finalAttrs: { pname = "pay-respects"; version = "0.7.6"; @@ -11,16 +12,20 @@ rustPlatform.buildRustPackage rec { domain = "codeberg.org"; owner = "iff"; repo = "pay-respects"; - rev = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-+50MKpZgJqjuUvJeFFv8fMILkJ3cOAN7R7kmlR+98II="; }; useFetchCargoVendor = true; cargoHash = "sha256-TJP+GPkXwPvnBwiF0SCkn8NGz/xyrYjbUZKCbUUSqHQ="; + nativeInstallCheckInputs = [ versionCheckHook ]; + doInstallCheck = true; + meta = { - description = "Terminal command correction, alternative to `thefuck`, written in Rust"; + description = "Terminal command correction, alternative to thefuck, written in Rust"; homepage = "https://codeberg.org/iff/pay-respects"; + changelog = "https://codeberg.org/iff/pay-respects/src/tag/v${finalAttrs.version}/CHANGELOG.md"; license = lib.licenses.agpl3Plus; maintainers = with lib.maintainers; [ sigmasquadron @@ -29,4 +34,4 @@ rustPlatform.buildRustPackage rec { ]; mainProgram = "pay-respects"; }; -} +})