- Replace patchShebangs with targeted substituteInPlace for tsc/vite
shebangs, pointing them to bun instead of node
- Use `bun run build` instead of `${pkgs.bun}/bin/bun run build`
since bun is already in nativeBuildInputs
- Remove nodejs from nativeBuildInputs (no longer needed)
- Add comment explaining why doCheck is disabled
This commit is contained in:
parent
cc477a310a
commit
3b88717091
1 changed files with 5 additions and 3 deletions
|
|
@ -96,11 +96,14 @@
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
cp -r ${bunDeps}/node_modules node_modules
|
cp -r ${bunDeps}/node_modules node_modules
|
||||||
chmod -R +w node_modules
|
chmod -R +w node_modules
|
||||||
patchShebangs node_modules
|
substituteInPlace node_modules/.bin/{tsc,vite} \
|
||||||
|
--replace-fail "/usr/bin/env node" "${lib.getExe pkgs.bun}"
|
||||||
export HOME=$TMPDIR
|
export HOME=$TMPDIR
|
||||||
${pkgs.bun}/bin/bun run build
|
bun run build
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# Tests require runtime resources (audio devices, model files, GPU/Vulkan)
|
||||||
|
# not available in the Nix build sandbox
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
# The tauri hook's installPhase expects target/ in cwd, but our
|
# The tauri hook's installPhase expects target/ in cwd, but our
|
||||||
|
|
@ -118,7 +121,6 @@
|
||||||
pkg-config
|
pkg-config
|
||||||
wrapGAppsHook4
|
wrapGAppsHook4
|
||||||
bun
|
bun
|
||||||
nodejs
|
|
||||||
jq
|
jq
|
||||||
cmake
|
cmake
|
||||||
llvmPackages.libclang
|
llvmPackages.libclang
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue