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

30 lines
635 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
}:
2020-11-14 04:01:32 +01:00
rustPlatform.buildRustPackage rec {
pname = "gping";
version = "1.2.6";
2020-11-14 04:01:32 +01:00
src = fetchFromGitHub {
owner = "orf";
repo = "gping";
rev = "gping-v${version}";
sha256 = "sha256-Sxmwuf+iTBTlpfMFCEUp6JyEaoHgmLIKB/gws2KY/xc=";
};
cargoSha256 = "sha256-xEASs6r5zxYJXS+at6aX5n0whGp5qwuNwq6Jh0GM+/4=";
2021-05-15 23:01:12 +02:00
buildInputs = lib.optional stdenv.isDarwin libiconv;
meta = with lib; {
description = "Ping, but with a graph";
homepage = "https://github.com/orf/gping";
2020-11-14 04:01:32 +01:00
license = licenses.mit;
maintainers = with maintainers; [ andrew-d ];
};
}