2024-11-13 15:58:08 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitea,
|
|
|
|
rustPlatform,
|
2025-05-11 12:28:30 -04:00
|
|
|
versionCheckHook,
|
2024-11-13 15:58:08 +00:00
|
|
|
}:
|
2025-05-11 12:12:42 -04:00
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
2024-11-13 15:58:08 +00:00
|
|
|
pname = "pay-respects";
|
2025-06-12 00:31:01 +00:00
|
|
|
version = "0.7.8";
|
2024-11-13 15:58:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "codeberg.org";
|
|
|
|
owner = "iff";
|
|
|
|
repo = "pay-respects";
|
2025-05-11 12:12:42 -04:00
|
|
|
tag = "v${finalAttrs.version}";
|
2025-06-12 00:31:01 +00:00
|
|
|
hash = "sha256-73uGxcJCWUVwr1ddNjZTRJwx8OfnAPwtp80v1xpUEhA=";
|
2024-11-13 15:58:08 +00:00
|
|
|
};
|
|
|
|
|
2025-06-12 00:31:01 +00:00
|
|
|
cargoHash = "sha256-VSv0BpIICkYyCIfGDfK7wfKQssWF13hCh6IW375CI/c=";
|
2025-01-16 12:16:23 +01:00
|
|
|
|
2025-05-11 12:28:30 -04:00
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
|
|
doInstallCheck = true;
|
|
|
|
|
2024-11-13 15:58:08 +00:00
|
|
|
meta = {
|
2025-05-11 20:02:33 -04:00
|
|
|
description = "Terminal command correction, alternative to thefuck, written in Rust";
|
2024-11-13 15:58:08 +00:00
|
|
|
homepage = "https://codeberg.org/iff/pay-respects";
|
2025-05-11 12:30:11 -04:00
|
|
|
changelog = "https://codeberg.org/iff/pay-respects/src/tag/v${finalAttrs.version}/CHANGELOG.md";
|
2024-11-13 15:58:08 +00:00
|
|
|
license = lib.licenses.agpl3Plus;
|
2025-01-16 12:16:55 +01:00
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
sigmasquadron
|
2025-07-27 14:08:38 +02:00
|
|
|
faukah
|
2025-01-20 00:11:19 +11:00
|
|
|
ALameLlama
|
2025-01-16 12:16:55 +01:00
|
|
|
];
|
2024-11-13 15:58:08 +00:00
|
|
|
mainProgram = "pay-respects";
|
|
|
|
};
|
2025-05-11 12:12:42 -04:00
|
|
|
})
|