Merge pull request #240911 from SFrijters/gping-1.12.0

gping: 1.3.2 -> 1.12.0
This commit is contained in:
figsoda 2023-07-01 12:22:53 -04:00 committed by GitHub
commit e8f39c5558
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,23 +4,26 @@
, fetchFromGitHub
, libiconv
, Security
, iputils
}:
rustPlatform.buildRustPackage rec {
pname = "gping";
version = "1.3.2";
version = "1.12.0";
src = fetchFromGitHub {
owner = "orf";
repo = "gping";
rev = "gping-v${version}";
sha256 = "sha256-hAUmRUMhP3rD1k6UhIN94/Kt+OjaytUTM3XIcrvasco=";
hash = "sha256-0+qSBnWewWg+PE5y9tTLLaB/uxUy+9uQkR1dnsk7MIY=";
};
cargoSha256 = "sha256-SqQsKTS3psF/xfwyBRQB9c3/KIZU1fpyqVy9fh4Rqkk=";
cargoHash = "sha256-N2V6Wwb2YB2YlBjyHZrh73RujTAmgsFOBLiN/SILP1k=";
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
nativeCheckInputs = [ iputils ];
doInstallCheck = true;
installCheckPhase = ''
$out/bin/gping --version | grep "${version}"
@ -29,6 +32,7 @@ rustPlatform.buildRustPackage rec {
meta = with lib; {
description = "Ping, but with a graph";
homepage = "https://github.com/orf/gping";
changelog = "https://github.com/orf/gping/releases/tag/gping-v${version}";
license = licenses.mit;
maintainers = with maintainers; [ andrew-d ];
};