pkgs: add woodpecker
This is just the same version as upstream, but following the `next` version.
This commit is contained in:
parent
281d98b295
commit
ea57ad3eb8
9 changed files with 3445 additions and 0 deletions
25
pkgs/woodpecker/agent.nix
Normal file
25
pkgs/woodpecker/agent.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ 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";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue