gping: add manpage to output

This commit is contained in:
Anton Mosich 2023-08-01 23:25:46 +02:00
parent a9f9cdeb72
commit 6baffa029e

View file

@ -2,6 +2,7 @@
, stdenv
, rustPlatform
, fetchFromGitHub
, installShellFiles
, libiconv
, Security
, iputils
@ -22,8 +23,14 @@ rustPlatform.buildRustPackage rec {
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
nativeBuildInputs = [ installShellFiles ];
nativeCheckInputs = lib.optionals stdenv.isLinux [ iputils ];
postInstall = ''
installManPage gping.1
'';
doInstallCheck = true;
installCheckPhase = ''
$out/bin/gping --version | grep "${version}"