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-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-03-10 23:12:59 +00:00
|
|
|
version = "1.2.1";
|
2018-12-25 20:13:44 +00:00
|
|
|
|
2020-11-14 03:01:32 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "orf";
|
|
|
|
repo = "gping";
|
|
|
|
rev = "v${version}";
|
2021-03-10 23:12:59 +00:00
|
|
|
sha256 = "sha256-lApm1JLXNjDKLj6zj25OaZDVp7lLW3qyrDsvJrudl8I=";
|
2018-12-25 20:13:44 +00:00
|
|
|
};
|
|
|
|
|
2021-05-07 12:00:49 +01:00
|
|
|
cargoSha256 = "sha256-d1NjPwT3YDp1U9JWeUejpWDbJonFlt5lYbUf7p3jVT0=";
|
2018-12-25 20:13:44 +00:00
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|