Skip to content

Commit c94b309

Browse files
authored
pay-respects: modernize (#406214)
2 parents ff566ca + 95f3b07 commit c94b309

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

pkgs/by-name/pa/pay-respects/package.nix

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,30 @@
22
lib,
33
fetchFromGitea,
44
rustPlatform,
5+
versionCheckHook,
56
}:
6-
rustPlatform.buildRustPackage rec {
7+
rustPlatform.buildRustPackage (finalAttrs: {
78
pname = "pay-respects";
89
version = "0.7.6";
910

1011
src = fetchFromGitea {
1112
domain = "codeberg.org";
1213
owner = "iff";
1314
repo = "pay-respects";
14-
rev = "v${version}";
15+
tag = "v${finalAttrs.version}";
1516
hash = "sha256-+50MKpZgJqjuUvJeFFv8fMILkJ3cOAN7R7kmlR+98II=";
1617
};
1718

1819
useFetchCargoVendor = true;
1920
cargoHash = "sha256-TJP+GPkXwPvnBwiF0SCkn8NGz/xyrYjbUZKCbUUSqHQ=";
2021

22+
nativeInstallCheckInputs = [ versionCheckHook ];
23+
doInstallCheck = true;
24+
2125
meta = {
22-
description = "Terminal command correction, alternative to `thefuck`, written in Rust";
26+
description = "Terminal command correction, alternative to thefuck, written in Rust";
2327
homepage = "https://codeberg.org/iff/pay-respects";
28+
changelog = "https://codeberg.org/iff/pay-respects/src/tag/v${finalAttrs.version}/CHANGELOG.md";
2429
license = lib.licenses.agpl3Plus;
2530
maintainers = with lib.maintainers; [
2631
sigmasquadron
@@ -29,4 +34,4 @@ rustPlatform.buildRustPackage rec {
2934
];
3035
mainProgram = "pay-respects";
3136
};
32-
}
37+
})

0 commit comments

Comments
 (0)