11 rustPlatform.buildRustPackage rec {
15 src = fetchFromGitHub {
18 rev = "gping-v${version}";
19 hash = "sha256-DJ+5WoizFF3K9drFc955bDMXnlW+okYrZos/+dRVtjw=";
22 cargoHash = "sha256-pQ95sS2dGVzZUOyuUpJPamW7RLiUTGu9KgpWLg4wn/w=";
24 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv Security ];
26 nativeBuildInputs = [ installShellFiles ];
28 nativeCheckInputs = lib.optionals stdenv.hostPlatform.isLinux [ iputils ];
31 installManPage gping.1
34 doInstallCheck = true;
35 installCheckPhase = ''
36 $out/bin/gping --version | grep "${version}"
40 description = "Ping, but with a graph";
41 homepage = "https://github.com/orf/gping";
42 changelog = "https://github.com/orf/gping/releases/tag/gping-v${version}";
43 license = licenses.mit;
44 maintainers = with maintainers; [ cafkafk ];
45 mainProgram = "gping";