chore: reduce nix fetching (#11660)

This commit is contained in:
Caleb Norton
2026-02-01 14:12:54 -06:00
committed by GitHub
parent f15755684f
commit d29dfe31e4
2 changed files with 6 additions and 5 deletions

View File

@@ -1,8 +1,8 @@
{ {
"nodeModules": { "nodeModules": {
"x86_64-linux": "sha256-3wRTDLo5FZoUc2Bwm1aAJZ4dNsekX8XoY6TwTmohgYo=", "x86_64-linux": "sha256-06Otz3loT4vn0578VDxUqVudtzQvV7oM3EIzjZnsejo=",
"aarch64-linux": "sha256-CKiuc6c52UV9cLEtccYEYS4QN0jYzNJv1fHSayqbHKo=", "aarch64-linux": "sha256-CKiuc6c52UV9cLEtccYEYS4QN0jYzNJv1fHSayqbHKo=",
"aarch64-darwin": "sha256-jGr2udrVeseioMWpIzpjYFfS1CN8GvNFwo6o92Aa5Oc=", "aarch64-darwin": "sha256-x8dgCF0CJBWi2dZLDHMGdlTqys1X755ok0PM6x0HAGo=",
"x86_64-darwin": "sha256-k5384Uun7tLjKkfJXXPcaZSXQ5jf/tMv21xi5cJU1rM=" "x86_64-darwin": "sha256-k5384Uun7tLjKkfJXXPcaZSXQ5jf/tMv21xi5cJU1rM="
} }
} }

View File

@@ -46,15 +46,16 @@ stdenvNoCC.mkDerivation {
buildPhase = '' buildPhase = ''
runHook preBuild runHook preBuild
export HOME=$(mktemp -d)
export BUN_INSTALL_CACHE_DIR=$(mktemp -d) export BUN_INSTALL_CACHE_DIR=$(mktemp -d)
bun install \ bun install \
--cpu="${bunCpu}" \ --cpu="${bunCpu}" \
--os="${bunOs}" \ --os="${bunOs}" \
--filter '!./' \
--filter './packages/opencode' \
--filter './packages/desktop' \
--frozen-lockfile \ --frozen-lockfile \
--ignore-scripts \ --ignore-scripts \
--no-progress \ --no-progress
--linker=isolated
bun --bun ${./scripts/canonicalize-node-modules.ts} bun --bun ${./scripts/canonicalize-node-modules.ts}
bun --bun ${./scripts/normalize-bun-binaries.ts} bun --bun ${./scripts/normalize-bun-binaries.ts}
runHook postBuild runHook postBuild