diff options
| author | Jérôme Benoit <[email protected]> | 2026-01-12 19:49:06 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-12 12:49:06 -0600 |
| commit | ca1b597b010bdf624fd839de479533cf5e4010df (patch) | |
| tree | 84464a8c1d93a532a5d67bb986f9b1d8f2204c14 /nix/node-modules.nix | |
| parent | d527ceeb2be7c00b29f051163762e46ea6d70537 (diff) | |
| download | opencode-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.nix | 6 |
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 \ |
