diff options
author | Berk D. Demir <bdd@mindcast.org> | 2022-06-02 18:14:30 +0000 |
---|---|---|
committer | Berk D. Demir <bdd@mindcast.org> | 2022-06-03 01:10:12 +0000 |
commit | ca0e288de3d4128f3af24da0e0d7b7b9127685c2 (patch) | |
tree | 9d20d04e3bf4e6736b8400c8585866352e536148 /pkgs/tools/system/runitor | |
parent | 4c704d3306ffa945bd40c7765e29dfb9c75f34df (diff) |
runitor: 0.9.2 -> 0.10.0
- New version - Requires Go 1.18 - Remove `-w` from the ldflags as it's implied by `-s` - Pull in timeout retry test fix as a patch and re-enable tests
Diffstat (limited to 'pkgs/tools/system/runitor')
-rw-r--r-- | pkgs/tools/system/runitor/default.nix | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/pkgs/tools/system/runitor/default.nix b/pkgs/tools/system/runitor/default.nix index 5bb821afdaf1a..965813f6e3718 100644 --- a/pkgs/tools/system/runitor/default.nix +++ b/pkgs/tools/system/runitor/default.nix @@ -1,29 +1,28 @@ -{ lib, buildGoModule, fetchFromGitHub, testers, runitor }: +{ lib, buildGoModule, fetchFromGitHub, fetchpatch, testers, runitor }: buildGoModule rec { pname = "runitor"; - version = "0.9.2"; + version = "0.10.0"; vendorSha256 = null; src = fetchFromGitHub { owner = "bdd"; repo = "runitor"; rev = "v${version}"; - sha256 = "sha256-LuCxn4j0MlnJjSh3d18YNzNrtbqtMPxgkZttqKUGJd4"; + sha256 = "sha256-96WKMeRkkG6en9JXaZjjnqeZOcLSII3knx8cdjTBAKw="; }; ldflags = [ - "-s" "-w" "-X main.Version=v${version}" + "-s" "-X main.Version=v${version}" ]; - # TODO(cole-h): - # End-to-end tests requiring localhost networking currently under - # OfBorg's Linux builders, while passing under Darwin. - # - # Ref: https://github.com/NixOS/nixpkgs/pull/170566#issuecomment-1114034891 - # - # Temporarily disable tests. - doCheck = false; + patches = [ + (fetchpatch { + name = "backport_TestPostRetries-timeout-fix.patch"; + url = "https://github.com/bdd/runitor/commit/418142585a8387224825637cca3fe275d3c3d147.patch"; + sha256 = "sha256-cl+KYoiHm2ioFuJVKokZkglIzL/NaEd5JNUuj4g8MUg="; + }) + ]; passthru.tests.version = testers.testVersion { package = runitor; |