1 { coreutils, fetchurl, fping, lib, stdenvNoCC }:
3 stdenvNoCC.mkDerivation rec {
4 pname = "zs-wait4host";
8 url = "https://ytrizja.de/distfiles/${pname}-${version}.tar.gz";
9 sha256 = "9F1264BDoGlRR7bWlRXhfyvxWio4ydShKmabUQEIz9I=";
13 for i in zs-wait4host zs-wait4host-inf; do
14 substituteInPlace "$i" \
15 --replace '$(zs-guess-fping)' '${fping}/bin/fping' \
16 --replace ' sleep ' ' ${coreutils}/bin/sleep ' \
17 --replace '[ "$FPING" ] || exit 1' ""
23 install -D -t $out/bin zs-wait4host zs-wait4host-inf
28 description = "Wait for a host to come up/go down";
29 homepage = "https://ytrizja.de/";
30 license = licenses.gpl3Plus;
32 platforms = platforms.all;