2023-10-14 09:59:44 +08:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
pname = "wait4x";
|
2025-07-31 16:13:22 +00:00
|
|
|
version = "3.5.1";
|
2023-10-14 09:59:44 +08:00
|
|
|
in
|
|
|
|
buildGoModule {
|
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2025-03-30 05:54:01 +02:00
|
|
|
owner = "wait4x";
|
2025-05-25 02:53:02 +02:00
|
|
|
repo = "wait4x";
|
2025-04-08 02:51:45 -04:00
|
|
|
rev = "v${version}";
|
2025-07-31 16:13:22 +00:00
|
|
|
hash = "sha256-VAt61k2eHQwyLSsvbWxe7jJ/Wyj4U4O2+LzCsoP/Yq4=";
|
2023-10-14 09:59:44 +08:00
|
|
|
};
|
|
|
|
|
2025-07-31 16:13:22 +00:00
|
|
|
vendorHash = "sha256-KJOKLTjwwgu2MFNIRDk8eeSVnZyjO9dfVyWrF5vqj9g=";
|
2023-10-14 09:59:44 +08:00
|
|
|
|
|
|
|
# Tests make network access
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2025-08-11 00:32:59 -07:00
|
|
|
description = "Allows you to wait for a port or a service to enter the requested state";
|
2025-03-30 05:54:01 +02:00
|
|
|
homepage = "https://github.com/wait4x/wait4x";
|
2023-10-14 09:59:44 +08:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ jfvillablanca ];
|
|
|
|
mainProgram = "wait4x";
|
|
|
|
};
|
|
|
|
}
|