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
|
|
@ -44,6 +44,8 @@ in
|
|||
runHook postBuild
|
||||
'';
|
||||
|
||||
entrypointPath = "index.js";
|
||||
|
||||
installPhase = let
|
||||
libPath = lib.makeLibraryPath [
|
||||
vips
|
||||
|
|
@ -60,7 +62,7 @@ in
|
|||
cp -r dist $out/${finalAttrs.pname}
|
||||
|
||||
makeWrapper ${lib.getExe bun} $out/bin/${finalAttrs.pname} \
|
||||
--add-flags "run $out/${finalAttrs.pname}/index.js" \
|
||||
--add-flags "run $out/${finalAttrs.pname}/${finalAttrs.entrypointPath}" \
|
||||
--set NODE_PATH $out/${finalAttrs.pname}/node_modules \
|
||||
--prefix PATH : ${binPath} \
|
||||
--prefix LD_LIBRARY_PATH : ${libPath}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue