nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6let
7 pname = "wait4x";
8 version = "3.6.0";
9in
10buildGoModule {
11 inherit pname version;
12
13 src = fetchFromGitHub {
14 owner = "wait4x";
15 repo = "wait4x";
16 rev = "v${version}";
17 hash = "sha256-RiF5tcnzMteXaYmw4mfQdamwV1PAyNC8pUownJzfACs=";
18 };
19
20 vendorHash = "sha256-fa3XEqLkzriMFYea3bv4FzaKgK2FsGwn5IQG48vh7+M=";
21
22 # Tests make network access
23 doCheck = false;
24
25 meta = {
26 description = "Allows you to wait for a port or a service to enter the requested state";
27 homepage = "https://github.com/wait4x/wait4x";
28 license = lib.licenses.asl20;
29 maintainers = with lib.maintainers; [ jfvillablanca ];
30 mainProgram = "wait4x";
31 };
32}