Merge pull request #89225 from minijackson/hyperfine-shell-files
hyperfine: install man and shell completion
This commit is contained in:
commit
9aecb84807
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchFromGitHub, rustPlatform
|
{ stdenv, fetchFromGitHub, rustPlatform, installShellFiles
|
||||||
, Security
|
, Security
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -15,8 +15,17 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
cargoSha256 = "06scvp7x1yixdadarsm461hbc256spx4aqhmjjn72x7hxn22h9cg";
|
cargoSha256 = "06scvp7x1yixdadarsm461hbc256spx4aqhmjjn72x7hxn22h9cg";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
|
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
installManPage doc/hyperfine.1
|
||||||
|
|
||||||
|
installShellCompletion \
|
||||||
|
$releaseDir/build/hyperfine-*/out/hyperfine.{bash,fish} \
|
||||||
|
--zsh $releaseDir/build/hyperfine-*/out/_hyperfine
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Command-line benchmarking tool";
|
description = "Command-line benchmarking tool";
|
||||||
homepage = "https://github.com/sharkdp/hyperfine";
|
homepage = "https://github.com/sharkdp/hyperfine";
|
||||||
|
|
Loading…
Reference in New Issue