summaryrefslogtreecommitdiffhomepage
path: root/nix/node-modules.nix
diff options
context:
space:
mode:
authorJérôme Benoit <[email protected]>2026-01-12 19:49:06 +0100
committerGitHub <[email protected]>2026-01-12 12:49:06 -0600
commitca1b597b010bdf624fd839de479533cf5e4010df (patch)
tree84464a8c1d93a532a5d67bb986f9b1d8f2204c14 /nix/node-modules.nix
parentd527ceeb2be7c00b29f051163762e46ea6d70537 (diff)
downloadopencode-ca1b597b010bdf624fd839de479533cf5e4010df.tar.gz
opencode-ca1b597b010bdf624fd839de479533cf5e4010df.zip
fix(nix): filter optional dependencies by target platform (#8033)
Diffstat (limited to 'nix/node-modules.nix')
-rw-r--r--nix/node-modules.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/nix/node-modules.nix b/nix/node-modules.nix
index be7edd9c7..2a8f0a47c 100644
--- a/nix/node-modules.nix
+++ b/nix/node-modules.nix
@@ -5,6 +5,8 @@
bun,
cacert,
curl,
+ bunCpu,
+ bunOs,
}:
args:
stdenvNoCC.mkDerivation {
@@ -29,8 +31,8 @@ stdenvNoCC.mkDerivation {
export HOME=$(mktemp -d)
export BUN_INSTALL_CACHE_DIR=$(mktemp -d)
bun install \
- --cpu="*" \
- --os="*" \
+ --cpu="${bunCpu}" \
+ --os="${bunOs}" \
--frozen-lockfile \
--ignore-scripts \
--no-progress \