3
0
Fork 0
forked from mirrors/nixpkgs
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-15 22:01:12 +01:00
, stdenv
2020-11-14 03:01:32 +00:00
, rustPlatform
, fetchFromGitHub
2021-05-15 22:01:12 +01:00
, libiconv
2022-02-07 08:56:32 +00:00
, Security
}:
2020-11-14 03:01:32 +00:00
rustPlatform.buildRustPackage rec {
pname = "gping";
2022-07-28 14:37:14 +01:00
version = "1.3.2";
2020-11-14 03:01:32 +00:00
src = fetchFromGitHub {
owner = "orf";
repo = "gping";
rev = "gping-v${version}";
2022-07-28 14:37:14 +01:00
sha256 = "sha256-hAUmRUMhP3rD1k6UhIN94/Kt+OjaytUTM3XIcrvasco=";
};
2022-07-28 14:37:14 +01:00
cargoSha256 = "sha256-SqQsKTS3psF/xfwyBRQB9c3/KIZU1fpyqVy9fh4Rqkk=";
2022-02-07 08:56:32 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
2021-05-15 22:01:12 +01:00
2022-02-07 08:57:12 +00: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 03:01:32 +00:00
license = licenses.mit;
maintainers = with maintainers; [ andrew-d ];
};
}