cargo-benchcmp: use finalAttrs

This commit is contained in:
Petr Portnov
2025-12-04 18:24:28 +03:00
parent 6607c17a21
commit 9f08b2b4c3
+6 -6
View File
@@ -6,14 +6,14 @@
stdenv,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "cargo-benchcmp";
version = "0.4.5";
src = fetchFromGitHub {
owner = "BurntSushi";
repo = "cargo-benchcmp";
tag = version;
tag = finalAttrs.version;
hash = "sha256-J8KFI0V/mOhUlYtVnFAQgPIpXL9/dLhOFxSly4bR00I=";
};
@@ -31,14 +31,14 @@ rustPlatform.buildRustPackage rec {
"--skip=different_input_colored"
];
meta = with lib; {
meta = {
description = "Small utility to compare Rust micro-benchmarks";
mainProgram = "cargo-benchcmp";
homepage = "https://github.com/BurntSushi/cargo-benchcmp";
license = with licenses; [
license = with lib.licenses; [
mit
unlicense
];
maintainers = [ maintainers.progrm_jarvis ];
maintainers = [ lib.maintainers.progrm_jarvis ];
};
}
})