diff options
| author | Caleb Norton <[email protected]> | 2026-02-01 14:12:54 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-01 14:12:54 -0600 |
| commit | d29dfe31e4e3577b1ad9644d834f1377b82691db (patch) | |
| tree | e07af95a1716fc8a18fe84fbdf9cb5784c263381 | |
| parent | f15755684f6de98f9953b5c1a04bac3202cb0e20 (diff) | |
| download | opencode-d29dfe31e4e3577b1ad9644d834f1377b82691db.tar.gz opencode-d29dfe31e4e3577b1ad9644d834f1377b82691db.zip | |
chore: reduce nix fetching (#11660)
| -rw-r--r-- | nix/hashes.json | 4 | ||||
| -rw-r--r-- | nix/node_modules.nix | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/nix/hashes.json b/nix/hashes.json index b48e4cb0d..654f0296e 100644 --- a/nix/hashes.json +++ b/nix/hashes.json @@ -1,8 +1,8 @@ { "nodeModules": { - "x86_64-linux": "sha256-3wRTDLo5FZoUc2Bwm1aAJZ4dNsekX8XoY6TwTmohgYo=", + "x86_64-linux": "sha256-06Otz3loT4vn0578VDxUqVudtzQvV7oM3EIzjZnsejo=", "aarch64-linux": "sha256-CKiuc6c52UV9cLEtccYEYS4QN0jYzNJv1fHSayqbHKo=", - "aarch64-darwin": "sha256-jGr2udrVeseioMWpIzpjYFfS1CN8GvNFwo6o92Aa5Oc=", + "aarch64-darwin": "sha256-x8dgCF0CJBWi2dZLDHMGdlTqys1X755ok0PM6x0HAGo=", "x86_64-darwin": "sha256-k5384Uun7tLjKkfJXXPcaZSXQ5jf/tMv21xi5cJU1rM=" } } diff --git a/nix/node_modules.nix b/nix/node_modules.nix index 6d75b9e75..836ef02a5 100644 --- a/nix/node_modules.nix +++ b/nix/node_modules.nix @@ -46,15 +46,16 @@ stdenvNoCC.mkDerivation { buildPhase = '' runHook preBuild - export HOME=$(mktemp -d) export BUN_INSTALL_CACHE_DIR=$(mktemp -d) bun install \ --cpu="${bunCpu}" \ --os="${bunOs}" \ + --filter '!./' \ + --filter './packages/opencode' \ + --filter './packages/desktop' \ --frozen-lockfile \ --ignore-scripts \ - --no-progress \ - --linker=isolated + --no-progress bun --bun ${./scripts/canonicalize-node-modules.ts} bun --bun ${./scripts/normalize-bun-binaries.ts} runHook postBuild |
