Merge pull request #246733 from antonmosich/gping-update
gping: 1.13.1 -> 1.14.0
This commit is contained in:
commit
ea69c47da1
@ -2,6 +2,7 @@
|
|||||||
, stdenv
|
, stdenv
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, installShellFiles
|
||||||
, libiconv
|
, libiconv
|
||||||
, Security
|
, Security
|
||||||
, iputils
|
, iputils
|
||||||
@ -9,21 +10,27 @@
|
|||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "gping";
|
pname = "gping";
|
||||||
version = "1.13.1";
|
version = "1.14.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "orf";
|
owner = "orf";
|
||||||
repo = "gping";
|
repo = "gping";
|
||||||
rev = "gping-v${version}";
|
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 ];
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
nativeCheckInputs = lib.optionals stdenv.isLinux [ iputils ];
|
nativeCheckInputs = lib.optionals stdenv.isLinux [ iputils ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
installManPage gping.1
|
||||||
|
'';
|
||||||
|
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
installCheckPhase = ''
|
installCheckPhase = ''
|
||||||
$out/bin/gping --version | grep "${version}"
|
$out/bin/gping --version | grep "${version}"
|
||||||
|
Loading…
Reference in New Issue
Block a user