From eb1a756b6680050da0c6351dc170a431808899d1 Mon Sep 17 00:00:00 2001 From: Ethan Carter Edwards Date: Sun, 11 May 2025 12:12:42 -0400 Subject: [PATCH 1/4] pay-respects: modernize Signed-off-by: Ethan Carter Edwards --- pkgs/by-name/pa/pay-respects/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/pa/pay-respects/package.nix b/pkgs/by-name/pa/pay-respects/package.nix index 0c9ffdb2eb4e..b42da4e1ebb5 100644 --- a/pkgs/by-name/pa/pay-respects/package.nix +++ b/pkgs/by-name/pa/pay-respects/package.nix @@ -3,7 +3,7 @@ fetchFromGitea, rustPlatform, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (finalAttrs: { pname = "pay-respects"; version = "0.7.6"; @@ -11,7 +11,7 @@ rustPlatform.buildRustPackage rec { domain = "codeberg.org"; owner = "iff"; repo = "pay-respects"; - rev = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-+50MKpZgJqjuUvJeFFv8fMILkJ3cOAN7R7kmlR+98II="; }; @@ -29,4 +29,4 @@ rustPlatform.buildRustPackage rec { ]; mainProgram = "pay-respects"; }; -} +}) From d169b41a44c9aedd647063ca5cf09c029401db8f Mon Sep 17 00:00:00 2001 From: Ethan Carter Edwards Date: Sun, 11 May 2025 12:28:30 -0400 Subject: [PATCH 2/4] pay-respects: add versionCheckHook for greater coverage More tests are always a good thing. Signed-off-by: Ethan Carter Edwards --- pkgs/by-name/pa/pay-respects/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/pa/pay-respects/package.nix b/pkgs/by-name/pa/pay-respects/package.nix index b42da4e1ebb5..ec08ffbdca7e 100644 --- a/pkgs/by-name/pa/pay-respects/package.nix +++ b/pkgs/by-name/pa/pay-respects/package.nix @@ -2,6 +2,7 @@ lib, fetchFromGitea, rustPlatform, + versionCheckHook, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "pay-respects"; @@ -18,6 +19,9 @@ rustPlatform.buildRustPackage (finalAttrs: { useFetchCargoVendor = true; cargoHash = "sha256-TJP+GPkXwPvnBwiF0SCkn8NGz/xyrYjbUZKCbUUSqHQ="; + nativeInstallCheckInputs = [ versionCheckHook ]; + doInstallCheck = true; + meta = { description = "Terminal command correction, alternative to `thefuck`, written in Rust"; homepage = "https://codeberg.org/iff/pay-respects"; From 7d5d18a426aad32774d81246d5b360ba55a38195 Mon Sep 17 00:00:00 2001 From: Ethan Carter Edwards Date: Sun, 11 May 2025 12:30:11 -0400 Subject: [PATCH 3/4] pay-respects: add changelog Upstream repo includes a changelog. Signed-off-by: Ethan Carter Edwards --- pkgs/by-name/pa/pay-respects/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/pa/pay-respects/package.nix b/pkgs/by-name/pa/pay-respects/package.nix index ec08ffbdca7e..b55fc286458b 100644 --- a/pkgs/by-name/pa/pay-respects/package.nix +++ b/pkgs/by-name/pa/pay-respects/package.nix @@ -25,6 +25,7 @@ rustPlatform.buildRustPackage (finalAttrs: { meta = { 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 From 95f3b07d06851beedef2ea013d394a7c544c62ef Mon Sep 17 00:00:00 2001 From: Ethan Carter Edwards Date: Sun, 11 May 2025 20:02:33 -0400 Subject: [PATCH 4/4] pay-respects: remove backticks in description search.nixos.org does not render the backticks as codeblocks in the description unlike the longDescription. Signed-off-by: Ethan Carter Edwards --- pkgs/by-name/pa/pay-respects/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/pa/pay-respects/package.nix b/pkgs/by-name/pa/pay-respects/package.nix index b55fc286458b..a98ae0d5c4e7 100644 --- a/pkgs/by-name/pa/pay-respects/package.nix +++ b/pkgs/by-name/pa/pay-respects/package.nix @@ -23,7 +23,7 @@ rustPlatform.buildRustPackage (finalAttrs: { 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;