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

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

36 lines
766 B
Nix
Raw Normal View History

{ lib
2021-05-16 00:01:12 +03:00
, stdenv
2020-11-14 06:01:32 +03:00
, rustPlatform
, fetchFromGitHub
2021-05-16 00:01:12 +03:00
, libiconv
2022-02-07 11:56:32 +03:00
, Security
}:
2020-11-14 06:01:32 +03:00
rustPlatform.buildRustPackage rec {
pname = "gping";
2022-04-08 02:29:18 +03:00
version = "1.3.1";
2020-11-14 06:01:32 +03:00
src = fetchFromGitHub {
owner = "orf";
repo = "gping";
rev = "gping-v${version}";
2022-04-08 02:29:18 +03:00
sha256 = "sha256-/CH9cSOkgXxdxSN1G4Jg404KOHEYhnsSCK4QB6Zdk+A=";
};
2022-04-08 02:29:18 +03:00
cargoSha256 = "sha256-2knD3MwrJKvbdovh6bd81GqHHqeAG1OFzXsLB4eO0Do=";
2022-02-07 11:56:32 +03:00
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
2021-05-16 00:01:12 +03:00
2022-02-07 11:57:12 +03: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";
2020-11-14 06:01:32 +03:00
license = licenses.mit;
maintainers = with maintainers; [ andrew-d ];
};
}