Files
nixpkgs/pkgs/by-name/gp/gping/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

57 lines
1.3 KiB
Nix

{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
installShellFiles,
iputils,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "gping";
version = "1.20.1";
src = fetchFromGitHub {
owner = "orf";
repo = "gping";
tag = "gping-v${version}";
hash = "sha256-whHbGZnxOQ/ISyWMl6miuogppZahgXxO3XmhcP6ymIo=";
};
cargoHash = "sha256-F0QBL7tCCdjnavClqrw8yYxFrY8y4f8h/gcHSpEqBiM=";
nativeBuildInputs = [ installShellFiles ];
nativeCheckInputs = lib.optionals stdenv.hostPlatform.isLinux [ iputils ];
postInstall = ''
installManPage gping.1
'';
# Requires internet access
checkFlags = [
"--skip=test::tests::test_integration_any"
"--skip=test::tests::test_integration_ip6"
"--skip=test::tests::test_integration_ipv4"
];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
passthru.updateScript = nix-update-script { };
meta = {
description = "Ping, but with a graph";
homepage = "https://github.com/orf/gping";
changelog = "https://github.com/orf/gping/releases/tag/gping-v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ cafkafk ];
mainProgram = "gping";
};
}