fix: 🐛 Fix Nix build
Some checks failed
Mirror to Codeberg / Mirror (push) Failing after 0s
Test Publish / build (client) (push) Failing after 0s
Test Publish / build (sdk) (push) Failing after 0s

This commit is contained in:
Jesse Wierzbinski 2025-06-15 19:23:11 +02:00
parent a6d3ebbeef
commit a211772309
No known key found for this signature in database
4 changed files with 540 additions and 222 deletions

View file

@ -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

View file

@ -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 [