gping: fix darwin build

iputils is only supported on Linux. I tested building gping on
x86_64-darwin without the iputils native check input and it worked.
This commit is contained in:
Lauren Yim 2023-07-06 11:45:40 +10:00
parent ff81c24d1d
commit 4fe42fcbc9
No known key found for this signature in database
GPG key ID: 03B34648D6DEB639

View file

@ -22,7 +22,7 @@ rustPlatform.buildRustPackage rec {
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ]; buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
nativeCheckInputs = [ iputils ]; nativeCheckInputs = lib.optionals stdenv.isLinux [ iputils ];
doInstallCheck = true; doInstallCheck = true;
installCheckPhase = '' installCheckPhase = ''