We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5893af commit 86c9929Copy full SHA for 86c9929
1 file changed
nix/package.nix
@@ -17,16 +17,21 @@ in
17
18
buildPhase = ''
19
runHook preBuild
20
- bun build --compile "./src/main.tsx" --outfile "hunk"
+ 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; }
25
runHook postBuild
26
'';
27
28
installPhase = ''
29
runHook preInstall
30
mkdir -p $out/bin
- cp ./hunk $out/bin/hunk
31
+ cp -p ./hunk-bin $out/bin/hunk
32
runHook postInstall
33
34
35
dontFixup = true;
36
+ dontStrip = true;
37
}
0 commit comments