2019-06-16 20:59:06 +01:00
|
|
|
{ lib
|
2021-05-15 22:01:12 +01:00
|
|
|
, stdenv
|
2020-11-14 03:01:32 +00:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2021-12-14 17:11:19 +00:00
|
|
|
, fetchpatch
|
2021-05-15 22:01:12 +01:00
|
|
|
, libiconv
|
2018-12-25 20:13:44 +00:00
|
|
|
}:
|
|
|
|
|
2020-11-14 03:01:32 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2018-12-25 20:13:44 +00:00
|
|
|
pname = "gping";
|
2021-10-27 13:53:43 +01:00
|
|
|
version = "1.2.6";
|
2018-12-25 20:13:44 +00:00
|
|
|
|
2020-11-14 03:01:32 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "orf";
|
|
|
|
repo = "gping";
|
2021-10-27 13:53:43 +01:00
|
|
|
rev = "gping-v${version}";
|
|
|
|
sha256 = "sha256-Sxmwuf+iTBTlpfMFCEUp6JyEaoHgmLIKB/gws2KY/xc=";
|
2018-12-25 20:13:44 +00:00
|
|
|
};
|
|
|
|
|
2021-10-27 13:53:43 +01:00
|
|
|
cargoSha256 = "sha256-xEASs6r5zxYJXS+at6aX5n0whGp5qwuNwq6Jh0GM+/4=";
|
2018-12-25 20:13:44 +00:00
|
|
|
|
2021-12-14 17:11:19 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/orf/gping/commit/b843beb9617e4b7b98d4f6d3942067cad59c9d60.patch";
|
|
|
|
sha256 = "sha256-9DIeeweCuGqymvUj4EBct82XVevkFSbHWaV76ExjGbs=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-05-15 22:01:12 +01:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
|
|
|
|
2018-12-25 20:13:44 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Ping, but with a graph";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/orf/gping";
|
2020-11-14 03:01:32 +00:00
|
|
|
license = licenses.mit;
|
2018-12-25 20:13:44 +00:00
|
|
|
maintainers = with maintainers; [ andrew-d ];
|
|
|
|
};
|
|
|
|
}
|