pay-respects: modernize (#406214)
This commit is contained in:
@@ -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";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user