Commit 006298e9 authored by Bruno BELANYI's avatar Bruno BELANYI Committed by Winter
Browse files

woodpecker-cli: patch out spurious CA certs errors

Closes #184875.
parent f1f16f3a
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
{ 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;