diff --git a/pkgs/tools/networking/wait-for-it/default.nix b/pkgs/tools/networking/wait-for-it/default.nix new file mode 100644 index 0000000000000..bb8916424919a --- /dev/null +++ b/pkgs/tools/networking/wait-for-it/default.nix @@ -0,0 +1,28 @@ +{ stdenvNoCC, lib, fetchFromGitHub }: + +stdenvNoCC.mkDerivation rec { + pname = "wait-for-it-unstable"; + version = "unstable-2020-02-05"; + + src = fetchFromGitHub { + owner = "vishnubob"; + repo = "wait-for-it"; + rev = "c096cface5fbd9f2d6b037391dfecae6fde1362e"; + sha256 = "1k1il4bk8l2jmfrrcklznc8nbm69qrjgxm20l02k01vhv2m2jc85"; + }; + phases = [ "unpackPhase" "installPhase" "fixupPhase" ]; + installPhase = '' + runHook preInstall + + install -D ./wait-for-it.sh $out/bin/wait-for-it + + runHook postInstall + ''; + meta = { + homepage = "https://github.com/vishnubob/wait-for-it"; + description = + "Pure bash script to test and wait on the availability of a TCP host and port"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.silviogutierrez ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 70462514ddb09..7cdb9e90effc6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7386,6 +7386,8 @@ in wakatime = pythonPackages.callPackage ../tools/misc/wakatime { }; + wait-for-it = callPackage ../tools/networking/wait-for-it {}; + weather = callPackage ../applications/misc/weather { }; wego = callPackage ../applications/misc/wego { };