nix-config/pkgs/woodpecker/agent.nix
Bruno BELANYI ea57ad3eb8 pkgs: add woodpecker
This is just the same version as upstream, but following the `next`
version.
2023-04-01 15:56:48 +01:00

26 lines
700 B
Nix

{ lib, buildGoModule, callPackage, fetchFromGitHub, fetchpatch }:
let
common = callPackage ./common.nix { };
in
buildGoModule {
pname = "woodpecker-agent";
inherit (common) version src ldflags postInstall vendorHash;
patches = [
# https://github.com/woodpecker-ci/woodpecker/pull/1686
(fetchpatch {
name = "fix-local-pipeline-home.patch";
url = "https://github.com/woodpecker-ci/woodpecker/commit/d2c9b73ebf015bfa64062b9855c33e14484ccc3e.patch";
hash = "sha256-1wYe4+oCWiV/6W4cIbdDT+mEL9ETQmcYQZhjJASvmUk=";
})
];
subPackages = "cmd/agent";
CGO_ENABLED = 0;
meta = common.meta // {
description = "Woodpecker Continuous Integration agent";
};
}