nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildGoModule, callPackage, fetchFromGitHub, woodpecker-frontend }:
2let
3 common = callPackage ./common.nix { };
4in
5buildGoModule {
6 pname = "woodpecker-server";
7 inherit (common) version src ldflags postBuild;
8 vendorSha256 = null;
9
10 postPatch = ''
11 cp -r ${woodpecker-frontend} web/dist
12 '';
13
14 subPackages = "cmd/server";
15
16 CGO_ENABLED = 1;
17
18 passthru = {
19 inherit woodpecker-frontend;
20
21 updateScript = ./update.sh;
22 };
23
24 meta = common.meta // {
25 description = "Woodpecker Continuous Integration server";
26 };
27}