mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 20:25:32 +03:00
cargo-aoc: use finalAttrs pattern
This commit is contained in:
parent
8fffefa86b
commit
e66f38292a
1 changed files with 3 additions and 3 deletions
|
@ -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";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue