cargo-mutants: use finalAttrs

This commit is contained in:
Petr Portnov
2025-12-04 18:31:03 +03:00
parent 4f832d680f
commit 6d800119e0
+7 -7
View File
@@ -4,14 +4,14 @@
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "cargo-mutants";
version = "25.3.1";
src = fetchFromGitHub {
owner = "sourcefrog";
repo = "cargo-mutants";
rev = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-T+BMLjp74IO71u/ftNfz67FPSt1LYCgsRP65gL0wScg=";
};
@@ -20,12 +20,12 @@ rustPlatform.buildRustPackage rec {
# too many tests require internet access
doCheck = false;
meta = with lib; {
meta = {
description = "Mutation testing tool for Rust";
mainProgram = "cargo-mutants";
homepage = "https://github.com/sourcefrog/cargo-mutants";
changelog = "https://github.com/sourcefrog/cargo-mutants/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = [ maintainers.progrm_jarvis ];
changelog = "https://github.com/sourcefrog/cargo-mutants/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.progrm_jarvis ];
};
}
})