nixpkgs/pkgs/tools/networking/gping/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
888 B
Nix
Raw Normal View History

{ lib
2021-05-15 23:01:12 +02:00
, stdenv
2020-11-14 04:01:32 +01:00
, rustPlatform
, fetchFromGitHub
2021-05-15 23:01:12 +02:00
, libiconv
2022-02-07 09:56:32 +01:00
, Security
2023-07-01 15:39:58 +02:00
, iputils
}:
2020-11-14 04:01:32 +01:00
rustPlatform.buildRustPackage rec {
pname = "gping";
2023-07-01 15:39:58 +02:00
version = "1.12.0";
2020-11-14 04:01:32 +01:00
src = fetchFromGitHub {
owner = "orf";
repo = "gping";
rev = "gping-v${version}";
2023-07-01 15:39:58 +02:00
hash = "sha256-0+qSBnWewWg+PE5y9tTLLaB/uxUy+9uQkR1dnsk7MIY=";
};
2023-07-01 15:39:58 +02:00
cargoHash = "sha256-N2V6Wwb2YB2YlBjyHZrh73RujTAmgsFOBLiN/SILP1k=";
2022-02-07 09:56:32 +01:00
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
2021-05-15 23:01:12 +02:00
2023-07-01 15:39:58 +02:00
nativeCheckInputs = [ iputils ];
2022-02-07 09:57:12 +01:00
doInstallCheck = true;
installCheckPhase = ''
$out/bin/gping --version | grep "${version}"
'';
meta = with lib; {
description = "Ping, but with a graph";
homepage = "https://github.com/orf/gping";
2023-07-01 15:39:58 +02:00
changelog = "https://github.com/orf/gping/releases/tag/gping-v${version}";
2020-11-14 04:01:32 +01:00
license = licenses.mit;
maintainers = with maintainers; [ andrew-d ];
};
}