From f5f2f5e5b1d1e460b862ea2c8addf4d60c9f85ae Mon Sep 17 00:00:00 2001 From: Christoph Jabs Date: Wed, 4 Feb 2026 16:04:53 +0200 Subject: [PATCH] cargo-spellcheck: use finalAttrs --- pkgs/by-name/ca/cargo-spellcheck/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ca/cargo-spellcheck/package.nix b/pkgs/by-name/ca/cargo-spellcheck/package.nix index cf879d345e88..ac8a29bf56fd 100644 --- a/pkgs/by-name/ca/cargo-spellcheck/package.nix +++ b/pkgs/by-name/ca/cargo-spellcheck/package.nix @@ -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 ]; }; -} +})