depot/third_party/nixpkgs/pkgs/development/tools/continuous-integration/woodpecker/cli.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

27 lines
802 B
Nix

{ lib, buildGoModule, callPackage, fetchFromGitHub, fetchpatch }:
let
common = callPackage ./common.nix { };
in
buildGoModule {
pname = "woodpecker-cli";
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;
meta = common.meta // {
description = "Command line client for the Woodpecker Continuous Integration server";
};
}