too lazy to think of a message, so enjoy this pointless text. Good luck future me...
All checks were successful
Test action / Print hello world (push) Successful in 8m4s
All checks were successful
Test action / Print hello world (push) Successful in 8m4s
This commit is contained in:
parent
4dd7db840f
commit
b73e848ec8
2 changed files with 12 additions and 4 deletions
BIN
app
Executable file
BIN
app
Executable file
Binary file not shown.
|
|
@ -13,13 +13,13 @@
|
||||||
bunNix = ../../bun.nix;
|
bunNix = ../../bun.nix;
|
||||||
dontFixup = true;
|
dontFixup = true;
|
||||||
|
|
||||||
# nativeBuildInputs = with pkgs; [];
|
nativeBuildInputs = with pkgs; [ makeWrapper ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
|
|
||||||
bun run build --bun
|
bun run build --bun
|
||||||
bun build --compile --target=bun-linux-x64 --minify --outfile ${pname} ./.output/server/index.mjs
|
# bun build --compile --target bun-linux-x64 --minify --outfile ${pname} ./.output/server/index.mjs
|
||||||
|
|
||||||
runHook postBuild
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
@ -27,8 +27,16 @@
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
install -pDm755 -t $out/bin ${pname}
|
# install -pDm755 -t $out/bin ${pname}
|
||||||
# cp -r ./.output/* $out
|
|
||||||
|
mkdir -p $out
|
||||||
|
cp -r ./.output/* $out
|
||||||
|
|
||||||
|
touch $out/auth.sqlite
|
||||||
|
|
||||||
|
makeWrapper ${lib.getExe pkgs.bun} $out/bin/${pname} \
|
||||||
|
--chdir $out \
|
||||||
|
--append-flags "server/index.mjs"
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue