Skip to content

Commit 8aafa38

Browse files
committed
fix(nix): empty Hunk binary on darwin
1 parent f5893af commit 8aafa38

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

nix/package.nix

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,20 @@ 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"
2124
runHook postBuild
2225
'';
2326

2427
installPhase = ''
2528
runHook preInstall
2629
mkdir -p $out/bin
27-
cp ./hunk $out/bin/hunk
30+
cp -p ./hunk-bin $out/bin/hunk
2831
runHook postInstall
2932
'';
3033

3134
dontFixup = true;
35+
dontStrip = true;
3236
}

0 commit comments

Comments
 (0)