diff options
author | Bruno BELANYI <bruno@belanyi.fr> | 2022-08-03 10:22:13 +0200 |
---|---|---|
committer | Winter <winter@winter.cafe> | 2022-08-05 18:25:05 -0400 |
commit | 006298e99ee7d49a4e85f935ba1b5ca26c106460 (patch) | |
tree | 7a31d6495cd76e681f94adbe54569f67e2f505a5 /pkgs/development/tools/continuous-integration | |
parent | f1f16f3ab61cfd79d050c9b9e020ef28194d1be6 (diff) |
woodpecker-cli: patch out spurious CA certs errors
Closes #184875.
Diffstat (limited to 'pkgs/development/tools/continuous-integration')
-rw-r--r-- | pkgs/development/tools/continuous-integration/woodpecker/cli.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/development/tools/continuous-integration/woodpecker/cli.nix b/pkgs/development/tools/continuous-integration/woodpecker/cli.nix index b5eda9efb917..aa83dfb16166 100644 --- a/pkgs/development/tools/continuous-integration/woodpecker/cli.nix +++ b/pkgs/development/tools/continuous-integration/woodpecker/cli.nix @@ -1,4 +1,4 @@ -{ lib, buildGoModule, callPackage, fetchFromGitHub }: +{ lib, buildGoModule, callPackage, fetchFromGitHub, fetchpatch }: let common = callPackage ./common.nix { }; in @@ -7,6 +7,16 @@ buildGoModule { inherit (common) version src ldflags postBuild; vendorSha256 = null; + patches = [ + # Fixes https://github.com/NixOS/nixpkgs/issues/184875, until a new version + # is released. + (fetchpatch { + name = "display-system-ca-error-only-if-there-is-an-error.patch"; + url = "https://github.com/woodpecker-ci/woodpecker/commit/1fb800329488de74c9db7cfc5dc43fb5a4efbad8.patch"; + sha256 = "sha256-wKI/7PhbxsAD/qrl4nnkHyyQhQcvGlySysnxytGJzfU="; + }) + ]; + subPackages = "cmd/cli"; CGO_ENABLED = 0; |