mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
build: 🏗️ Package Worker
This commit is contained in:
parent
5a4ce29206
commit
1beb18e321
7 changed files with 66 additions and 9 deletions
21
nix/package-worker.nix
Normal file
21
nix/package-worker.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# Simply edit the server to run "bun run build:worker" instead of "bun run build"
|
||||
{versia-server}:
|
||||
versia-server.overrideAttrs (oldAttrs: {
|
||||
pname = "${oldAttrs.pname}-worker";
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
bun run build:worker
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
entrypointPath = "worker.js";
|
||||
|
||||
patches = [./fix-build-spinner-worker.patch];
|
||||
|
||||
meta =
|
||||
oldAttrs.meta
|
||||
// {
|
||||
description = "${oldAttrs.meta.description} (worker)";
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue