Skip to content

Commit

Permalink
hyperfine: install man and shell completion
Browse files Browse the repository at this point in the history
  • Loading branch information
minijackson committed May 31, 2020
1 parent f75d629 commit c06682b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pkgs/tools/misc/hyperfine/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, rustPlatform
{ stdenv, fetchFromGitHub, rustPlatform, installShellFiles
, Security
}:

Expand All @@ -15,8 +15,17 @@ rustPlatform.buildRustPackage rec {

cargoSha256 = "06scvp7x1yixdadarsm461hbc256spx4aqhmjjn72x7hxn22h9cg";

nativeBuildInputs = [ installShellFiles ];
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; {
description = "Command-line benchmarking tool";
homepage = "https://github.com/sharkdp/hyperfine";
Expand Down

0 comments on commit c06682b

Please sign in to comment.