nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 35 lines 590 B view raw
1{ 2 buildGoModule, 3 callPackage, 4}: 5let 6 common = callPackage ./common.nix { }; 7in 8buildGoModule (finalAttrs: { 9 pname = "woodpecker-server"; 10 inherit (common) 11 version 12 src 13 ldflags 14 postInstall 15 vendorHash 16 ; 17 18 subPackages = "cmd/server"; 19 20 env.CGO_ENABLED = 1; 21 22 postPatch = '' 23 cp -r ${finalAttrs.passthru.webui} web/dist 24 ''; 25 26 passthru = { 27 webui = callPackage ./webui.nix { }; 28 updateScript = ./update.sh; 29 }; 30 31 meta = common.meta // { 32 description = "Woodpecker Continuous Integration server"; 33 mainProgram = "woodpecker-server"; 34 }; 35})