harper: Use finalAttrs

This commit is contained in:
Jonathan Davies
2025-11-24 16:33:03 +00:00
parent 47515823b9
commit d35c7910da
+4 -4
View File
@@ -6,14 +6,14 @@
versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "harper";
version = "0.71.0";
src = fetchFromGitHub {
owner = "Automattic";
repo = "harper";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-Hf086Ub0nVGET4qELDMddOErGAhK8B6ohbI5JhnU6z8=";
};
@@ -31,7 +31,7 @@ rustPlatform.buildRustPackage rec {
meta = {
description = "Grammar Checker for Developers";
homepage = "https://github.com/Automattic/harper";
changelog = "https://github.com/Automattic/harper/releases/tag/v${version}";
changelog = "https://github.com/Automattic/harper/releases/tag/v${finalAttrs.version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
pbsds
@@ -40,4 +40,4 @@ rustPlatform.buildRustPackage rec {
];
mainProgram = "harper-ls";
};
}
})