hyperfine: Use finalAttrs

This commit is contained in:
Jonathan Davies
2025-12-20 17:44:32 +00:00
parent 0950da8484
commit 67a98ca3c4
+4 -4
View File
@@ -7,14 +7,14 @@
versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "hyperfine";
version = "1.20.0";
src = fetchFromGitHub {
owner = "sharkdp";
repo = "hyperfine";
rev = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-Ee889Fx2Mi2005SrlcKc7TwG8ZIpTqisfLebXYadvSg=";
};
@@ -40,7 +40,7 @@ rustPlatform.buildRustPackage rec {
meta = {
description = "Command-line benchmarking tool";
homepage = "https://github.com/sharkdp/hyperfine";
changelog = "https://github.com/sharkdp/hyperfine/blob/v${version}/CHANGELOG.md";
changelog = "https://github.com/sharkdp/hyperfine/blob/v${finalAttrs.version}/CHANGELOG.md";
license = with lib.licenses; [
asl20 # or
mit
@@ -51,4 +51,4 @@ rustPlatform.buildRustPackage rec {
];
mainProgram = "hyperfine";
};
}
})