5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
27 lines
550 B
Nix
27 lines
550 B
Nix
{ buildGoModule, callPackage, woodpecker-frontend }:
|
|
let
|
|
common = callPackage ./common.nix { };
|
|
in
|
|
buildGoModule {
|
|
pname = "woodpecker-server";
|
|
inherit (common) version src ldflags postInstall vendorHash;
|
|
|
|
postPatch = ''
|
|
cp -r ${woodpecker-frontend} web/dist
|
|
'';
|
|
|
|
subPackages = "cmd/server";
|
|
|
|
CGO_ENABLED = 1;
|
|
|
|
passthru = {
|
|
inherit woodpecker-frontend;
|
|
|
|
updateScript = ./update.sh;
|
|
};
|
|
|
|
meta = common.meta // {
|
|
description = "Woodpecker Continuous Integration server";
|
|
mainProgram = "woodpecker-server";
|
|
};
|
|
}
|