cargo-spellcheck: use finalAttrs

This commit is contained in:
Christoph Jabs
2026-02-05 09:19:25 +02:00
parent 35a0098b98
commit f5f2f5e5b1
+4 -4
View File
@@ -5,14 +5,14 @@
stdenv,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "cargo-spellcheck";
version = "0.15.5";
src = fetchFromGitHub {
owner = "drahnr";
repo = "cargo-spellcheck";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-saRr1xEBefLoCgCxU/pyQOmmt/di+DOQHMoVc4LgRm0=";
};
@@ -34,7 +34,7 @@ rustPlatform.buildRustPackage rec {
description = "Checks rust documentation for spelling and grammar mistakes";
mainProgram = "cargo-spellcheck";
homepage = "https://github.com/drahnr/cargo-spellcheck";
changelog = "https://github.com/drahnr/cargo-spellcheck/blob/v${version}/CHANGELOG.md";
changelog = "https://github.com/drahnr/cargo-spellcheck/blob/v${finalAttrs.version}/CHANGELOG.md";
license = with lib.licenses; [
asl20 # or
mit
@@ -45,4 +45,4 @@ rustPlatform.buildRustPackage rec {
chrjabs
];
};
}
})