2023-05-03 16:39:18 +02:00
|
|
|
{ buildGoModule, callPackage, woodpecker-frontend }:
|
2023-03-25 15:22:30 +01:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|