cargo-aoc: use finalAttrs pattern

This commit is contained in:
Defelo 2025-02-22 11:25:42 +01:00
parent 8fffefa86b
commit e66f38292a
No known key found for this signature in database
GPG key ID: 2A05272471204DD3

View file

@ -5,12 +5,12 @@
versionCheckHook, versionCheckHook,
nix-update-script, nix-update-script,
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage (finalAttrs: {
pname = "cargo-aoc"; pname = "cargo-aoc";
version = "0.3.8"; version = "0.3.8";
src = fetchCrate { src = fetchCrate {
inherit pname version; inherit (finalAttrs) pname version;
hash = "sha256-5CjY91515GeLzmLJiGjfbBfIMPr32EA65X/rriKPWRY="; hash = "sha256-5CjY91515GeLzmLJiGjfbBfIMPr32EA65X/rriKPWRY=";
}; };
@ -33,4 +33,4 @@ rustPlatform.buildRustPackage rec {
maintainers = with lib.maintainers; [ defelo ]; maintainers = with lib.maintainers; [ defelo ];
mainProgram = "cargo-aoc"; mainProgram = "cargo-aoc";
}; };
} })