Skip to content

Commit

Permalink
Merge pull request #246733 from antonmosich/gping-update
Browse files Browse the repository at this point in the history
gping: 1.13.1 -> 1.14.0
  • Loading branch information
figsoda authored Aug 2, 2023
2 parents 4a49821 + 6baffa0 commit ea69c47
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions pkgs/tools/networking/gping/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,35 @@
, stdenv
, rustPlatform
, fetchFromGitHub
, installShellFiles
, libiconv
, Security
, iputils
}:

rustPlatform.buildRustPackage rec {
pname = "gping";
version = "1.13.1";
version = "1.14.0";

src = fetchFromGitHub {
owner = "orf";
repo = "gping";
rev = "gping-v${version}";
hash = "sha256-EkoOHyHYcbyqtT1zCq0kmXND1eSADE7QD3QQ01RJtvM=";
hash = "sha256-ReP+s2p0X39LVvl3/QF7fsYkU+OvsQyMhyuH8v4HuVU=";
};

cargoHash = "sha256-iDB3ZIlSLEBf+nSxLeQcE93nqMjH29w+z7kwCNksuSk=";
cargoHash = "sha256-FTiNxCoEe/iMz68F1CpJHypgrhn4WwwWowuN9I1rl6E=";

buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];

nativeBuildInputs = [ installShellFiles ];

nativeCheckInputs = lib.optionals stdenv.isLinux [ iputils ];

postInstall = ''
installManPage gping.1
'';

doInstallCheck = true;
installCheckPhase = ''
$out/bin/gping --version | grep "${version}"
Expand Down

0 comments on commit ea69c47

Please sign in to comment.