mirror of
https://github.com/versia-pub/server.git
synced 2026-03-12 21:39:15 +01:00
fix: 🐛 Fix Nix build
This commit is contained in:
parent
a6d3ebbeef
commit
a211772309
4 changed files with 540 additions and 222 deletions
|
|
@ -5,11 +5,11 @@ versia-server.overrideAttrs (oldAttrs: {
|
|||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
bun run build:worker
|
||||
bun run packages/worker/build.ts
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
entrypointPath = "worker.js";
|
||||
entrypointPath = "packages/worker/index.js";
|
||||
|
||||
meta =
|
||||
oldAttrs.meta
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ in
|
|||
|
||||
pnpmDeps = pnpm.fetchDeps {
|
||||
inherit (finalAttrs) pname version src pnpmInstallFlags;
|
||||
hash = "sha256-/VCzDp8EfvQkaz/5W3rcoEyOlSB4zeW97qqOTJf6WvA=";
|
||||
hash = "sha256-6lcsXcMEh7UbB5aLJzgJKUzynZbSZPgdj6l9E7RVx7c=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
|
@ -39,12 +39,12 @@ in
|
|||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
bun run build
|
||||
bun run packages/api/build.ts
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
entrypointPath = "index.js";
|
||||
entrypointPath = "packages/api/index.js";
|
||||
|
||||
installPhase = let
|
||||
libPath = lib.makeLibraryPath [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue