From 7072712e6c7e7010b988e70a33924065be3418fe Mon Sep 17 00:00:00 2001 From: Christoph Jabs Date: Wed, 4 Feb 2026 16:04:53 +0200 Subject: [PATCH] cargo-machete: use finalAttrs --- pkgs/by-name/ca/cargo-machete/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ca/cargo-machete/package.nix b/pkgs/by-name/ca/cargo-machete/package.nix index 988c6847c4c0..54119634c2ae 100644 --- a/pkgs/by-name/ca/cargo-machete/package.nix +++ b/pkgs/by-name/ca/cargo-machete/package.nix @@ -4,14 +4,14 @@ fetchFromGitHub, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (finalAttrs: { pname = "cargo-machete"; version = "0.9.1"; src = fetchFromGitHub { owner = "bnjbvr"; repo = "cargo-machete"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; hash = "sha256-4tzffZeHdhAq6/K1BGkThqT+CBa3rUw+kR7aLwnqZjc="; }; @@ -24,11 +24,11 @@ rustPlatform.buildRustPackage rec { description = "Cargo tool that detects unused dependencies in Rust projects"; mainProgram = "cargo-machete"; homepage = "https://github.com/bnjbvr/cargo-machete"; - changelog = "https://github.com/bnjbvr/cargo-machete/blob/${src.rev}/CHANGELOG.md"; + changelog = "https://github.com/bnjbvr/cargo-machete/blob/v${finalAttrs.version}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ matthiasbeyer chrjabs ]; }; -} +})