mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-25 14:48:25 +03:00
zs-wait4host: init at 0.3.2
This commit is contained in:
parent
6aa26c8623
commit
ee3d784011
36
pkgs/tools/networking/zs-wait4host/default.nix
Normal file
36
pkgs/tools/networking/zs-wait4host/default.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ bash, coreutils, fetchurl, fping, lib, stdenvNoCC }:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "zs-wait4host";
|
||||
version = "0.3.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://ytrizja.de/distfiles/${pname}-${version}.tar.gz";
|
||||
sha256 = "9F1264BDoGlRR7bWlRXhfyvxWio4ydShKmabUQEIz9I=";
|
||||
};
|
||||
|
||||
buildInputs = [ bash coreutils fping ];
|
||||
|
||||
postPatch = ''
|
||||
for i in zs-wait4host zs-wait4host-inf; do
|
||||
substituteInPlace "$i" \
|
||||
--replace '$(zs-guess-fping)' '${fping}/bin/fping' \
|
||||
--replace ' sleep ' ' ${coreutils}/bin/sleep ' \
|
||||
--replace '[ "$FPING" ] || exit 1' ""
|
||||
done
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -D -t $out/bin zs-wait4host zs-wait4host-inf
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Wait for a host to come up/go down";
|
||||
homepage = "https://ytrizja.de/";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ zseri ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
@ -9400,6 +9400,8 @@ in
|
||||
|
||||
zs-apc-spdu-ctl = callPackage ../tools/networking/zs-apc-spdu-ctl { };
|
||||
|
||||
zs-wait4host = callPackage ../tools/networking/zs-wait4host { };
|
||||
|
||||
zstxtns-utils = callPackage ../tools/text/zstxtns-utils { };
|
||||
|
||||
zsh-autoenv = callPackage ../tools/misc/zsh-autoenv { };
|
||||
|
Loading…
Reference in New Issue
Block a user