11 rustPlatform.buildRustPackage rec {
15 src = fetchFromGitHub {
18 rev = "gping-v${version}";
19 hash = "sha256-JZMgbCwEGfngCQVmuZX1tu3he/f/TBLitcP/Ea3S6yI=";
22 cargoHash = "sha256-I9rcC2sotrdHMCCiDgfycKRnJxZLuA5OLZPZC0zFiLc=";
24 nativeBuildInputs = [ installShellFiles ];
26 nativeCheckInputs = lib.optionals stdenv.hostPlatform.isLinux [ iputils ];
29 installManPage gping.1
32 doInstallCheck = true;
34 nativeInstallCheckInputs = [ versionCheckHook ];
36 versionCheckProgramArg = [ "--version" ];
39 description = "Ping, but with a graph";
40 homepage = "https://github.com/orf/gping";
41 changelog = "https://github.com/orf/gping/releases/tag/gping-v${version}";
42 license = licenses.mit;
43 maintainers = with maintainers; [ cafkafk ];
44 mainProgram = "gping";