From 6d800119e048cc945e8a57b5f65a05702ddbdcca Mon Sep 17 00:00:00 2001 From: Petr Portnov Date: Mon, 1 Dec 2025 18:52:47 +0300 Subject: [PATCH] cargo-mutants: use finalAttrs --- pkgs/by-name/ca/cargo-mutants/package.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/ca/cargo-mutants/package.nix b/pkgs/by-name/ca/cargo-mutants/package.nix index b64fefedc72d..253269b4ca4b 100644 --- a/pkgs/by-name/ca/cargo-mutants/package.nix +++ b/pkgs/by-name/ca/cargo-mutants/package.nix @@ -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 ]; }; -} +})