Skip to content

Commit 86c9929

Browse files
committed
tmp
1 parent f5893af commit 86c9929

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

nix/package.nix

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,21 @@ in
1717

1818
buildPhase = ''
1919
runHook preBuild
20-
bun build --compile "./src/main.tsx" --outfile "hunk"
20+
mkdir -p .bun-tmp .bun-install
21+
BUN_TMPDIR=$PWD/.bun-tmp \
22+
BUN_INSTALL=$PWD/.bun-install \
23+
bun build --compile "./src/main.tsx" --outfile "hunk-bin"
24+
[ -s ./hunk-bin ] || { echo "ERROR: hunk-bin binary is empty!"; exit 1; }
2125
runHook postBuild
2226
'';
2327

2428
installPhase = ''
2529
runHook preInstall
2630
mkdir -p $out/bin
27-
cp ./hunk $out/bin/hunk
31+
cp -p ./hunk-bin $out/bin/hunk
2832
runHook postInstall
2933
'';
3034

3135
dontFixup = true;
36+
dontStrip = true;
3237
}

0 commit comments

Comments
 (0)