This repository has been archived on 2024-10-13. You can view files and clone it, but cannot push or open issues or pull requests.
nix-packages/ci/woodpecker/server.nix
Charlotte 🦝 Delenk a92566f8ba
Some checks reported errors
ci/woodpecker/push/update Pipeline was successful
ci/woodpecker/pr/update Pipeline was successful
Hydra emoji-volpeon-bunhd Hydra build #13284 of nix-packages:aarch64-linux-master-pr9:emoji-volpeon-bunhd
Hydra plover-plugin-yaml-dictionary Hydra build #13285 of nix-packages:aarch64-linux-master-pr9:plover-plugin-yaml-dictionary
Hydra python-plover-stroke Hydra build #13287 of nix-packages:aarch64-linux-master-pr9:python-plover-stroke
Hydra mautrix-signal Hydra build #13288 of nix-packages:aarch64-linux-master-pr9:mautrix-signal
Hydra miifox-net Hydra build #13289 of nix-packages:aarch64-linux-master-pr9:miifox-net
Hydra mautrix-cleanup Hydra build #13290 of nix-packages:aarch64-linux-master-pr9:mautrix-cleanup
Hydra pleroma-fe Hydra build #13291 of nix-packages:aarch64-linux-master-pr9:pleroma-fe
Hydra fairfax Hydra build #13292 of nix-packages:aarch64-linux-master-pr9:fairfax
Hydra plover Hydra build #13293 of nix-packages:aarch64-linux-master-pr9:plover
Hydra papermc Hydra build #13294 of nix-packages:aarch64-linux-master-pr9:papermc
Hydra old-homepage Hydra build #13295 of nix-packages:aarch64-linux-master-pr9:old-homepage
Hydra python-instagram Hydra build #13296 of nix-packages:aarch64-linux-master-pr9:python-instagram
Hydra woodpecker-frontend Hydra build #13297 of nix-packages:aarch64-linux-master-pr9:woodpecker-frontend
Hydra alco-sans Hydra build #13298 of nix-packages:aarch64-linux-master-pr9:alco-sans
Hydra woodpecker-agent Hydra build #13299 of nix-packages:aarch64-linux-master-pr9:woodpecker-agent
Hydra emoji-volpeon-bunhd-flip Hydra build #13300 of nix-packages:aarch64-linux-master-pr9:emoji-volpeon-bunhd-flip
Hydra rpi4Kernel Hydra build #13301 of nix-packages:aarch64-linux-master-pr9:rpi4Kernel
Hydra python-simplefuzzyset Hydra build #13302 of nix-packages:aarch64-linux-master-pr9:python-simplefuzzyset
Hydra mautrix-telegram Hydra build #13303 of nix-packages:aarch64-linux-master-pr9:mautrix-telegram
Hydra akkoma Hydra build #13304 of nix-packages:aarch64-linux-master-pr9:akkoma
Hydra mautrix-whatsapp Hydra build #13305 of nix-packages:aarch64-linux-master-pr9:mautrix-whatsapp
Hydra plover-plugin-tapey-tape Hydra build #13306 of nix-packages:aarch64-linux-master-pr9:plover-plugin-tapey-tape
Hydra emoji-lotte Hydra build #13307 of nix-packages:aarch64-linux-master-pr9:emoji-lotte
Hydra mautrix-discord Hydra build #13308 of nix-packages:aarch64-linux-master-pr9:mautrix-discord
Hydra kreative-square Hydra build #13309 of nix-packages:aarch64-linux-master-pr9:kreative-square
Hydra python-rtf-tokenize Hydra build #13310 of nix-packages:aarch64-linux-master-pr9:python-rtf-tokenize
Hydra nasin-nanpa Hydra build #13311 of nix-packages:aarch64-linux-master-pr9:nasin-nanpa
Hydra emoji-volpeon-gphn Hydra build #13312 of nix-packages:aarch64-linux-master-pr9:emoji-volpeon-gphn
Hydra constructium Hydra build #13313 of nix-packages:aarch64-linux-master-pr9:constructium
Hydra emoji-volpeon-fox Hydra build #13314 of nix-packages:aarch64-linux-master-pr9:emoji-volpeon-fox
Hydra element-web Hydra build #13315 of nix-packages:aarch64-linux-master-pr9:element-web
Hydra plover-plugin-emoji Hydra build #13316 of nix-packages:aarch64-linux-master-pr9:plover-plugin-emoji
Hydra emoji-volpeon-drgn Hydra build #13317 of nix-packages:aarch64-linux-master-pr9:emoji-volpeon-drgn
Hydra plover-dict-didoesdigital Hydra build #13318 of nix-packages:aarch64-linux-master-pr9:plover-dict-didoesdigital
Hydra admin-fe Hydra build #13319 of nix-packages:aarch64-linux-master-pr9:admin-fe
Hydra lotte-art Hydra build #13320 of nix-packages:aarch64-linux-master-pr9:lotte-art
Hydra woodpecker-cli Hydra build #13321 of nix-packages:aarch64-linux-master-pr9:woodpecker-cli
Hydra matrix-media-repo Hydra build #13322 of nix-packages:aarch64-linux-master-pr9:matrix-media-repo
Hydra attic-server Hydra build #13323 of nix-packages:aarch64-linux-master-pr9:attic-server
Hydra emoji-volpeon-vlpn Hydra build #13324 of nix-packages:aarch64-linux-master-pr9:emoji-volpeon-vlpn
Hydra emoji-volpeon-blobfox Hydra build #13325 of nix-packages:aarch64-linux-master-pr9:emoji-volpeon-blobfox
Hydra python-tulir-telethon Hydra build #13326 of nix-packages:aarch64-linux-master-pr9:python-tulir-telethon
Hydra emoji-volpeon-blobfox-flip Hydra build #13327 of nix-packages:aarch64-linux-master-pr9:emoji-volpeon-blobfox-flip
Hydra plover-plugin-machine-hid Hydra build #13328 of nix-packages:aarch64-linux-master-pr9:plover-plugin-machine-hid
Hydra attic-client Hydra build #13329 of nix-packages:aarch64-linux-master-pr9:attic-client
Hydra emoji-volpeon-raccoon Hydra build #13330 of nix-packages:aarch64-linux-master-pr9:emoji-volpeon-raccoon
Hydra fairfax-hd Hydra build #13331 of nix-packages:aarch64-linux-master-pr9:fairfax-hd
Hydra attic Hydra build #13332 of nix-packages:aarch64-linux-master-pr9:attic
Hydra plover-plugins-manager Hydra build #13334 of nix-packages:aarch64-linux-master-pr9:plover-plugins-manager
Hydra python-mautrix Hydra build #13335 of nix-packages:aarch64-linux-master-pr9:python-mautrix
Hydra plover-plugin-rkb1-hid Hydra build #13336 of nix-packages:aarch64-linux-master-pr9:plover-plugin-rkb1-hid
Hydra woodpecker-server Hydra build #13286 of nix-packages:aarch64-linux-master-pr9:woodpecker-server
Hydra emoji-caro Hydra build #13333 of nix-packages:aarch64-linux-master-pr9:emoji-caro
make matrix builds unlimited
2023-04-12 08:12:24 +01:00

47 lines
1.3 KiB
Nix

{
lib,
buildGoModule,
callPackage,
fetchFromGitHub,
writeScript,
}: let
woodpecker-frontend = callPackage ./frontend.nix {};
common = callPackage ./common.nix {};
in
buildGoModule rec {
pname = "woodpecker-server";
inherit (common) version src ldflags postBuild;
vendorSha256 = builtins.readFile ./server.sha256;
proxyVendor = true;
postPatch = ''
cp -r ${woodpecker-frontend} web/dist
'';
subPackages = "cmd/server";
CGO_ENABLED = 1;
patches = [./unlimited-matrix.patch];
passthru = {
inherit woodpecker-frontend;
updateScript = writeScript "update-woodpecker" ''
${../../scripts/update-git.sh} https://github.com/woodpecker-ci/woodpecker ci/woodpecker/source.json
if [ "$(git diff -- ci/woodpecker/source.json)" ]; then
SRC_PATH=$(nix-build -E '(import ./. {}).${pname}.src')
${../../scripts/update-yarn.sh} $SRC_PATH/web ci/woodpecker
./scripts/update-go.sh ci/woodpecker/agent.nix ci/woodpecker/agent.sha256
./scripts/update-go.sh ci/woodpecker/cli.nix ci/woodpecker/cli.sha256
./scripts/update-go.sh ci/woodpecker/server.nix ci/woodpecker/server.sha256
fi
'';
};
meta =
common.meta
// {
description = "Woodpecker Continuous Integration server";
};
}