cargo-machete: use finalAttrs

This commit is contained in:
Christoph Jabs
2026-02-05 09:17:33 +02:00
parent 95b818aef4
commit 7072712e6c
+4 -4
View File
@@ -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
];
};
}
})