diff options
| author | Jérôme Benoit <[email protected]> | 2026-01-31 19:32:11 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-31 12:32:11 -0600 |
| commit | 121d6a72c0bc62c8a0699db87fb4f11b1bb73a53 (patch) | |
| tree | 830408a6e7cd650086715403a75c3baf0f2f2fa6 /nix/node_modules.nix | |
| parent | 35f64b80fa6825f8c14fd1654a1331b19db94a20 (diff) | |
| download | opencode-121d6a72c0bc62c8a0699db87fb4f11b1bb73a53.tar.gz opencode-121d6a72c0bc62c8a0699db87fb4f11b1bb73a53.zip | |
fix(nix): restore native runners for darwin hash computation (#11495)
Diffstat (limited to 'nix/node_modules.nix')
| -rw-r--r-- | nix/node_modules.nix | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/nix/node_modules.nix b/nix/node_modules.nix index 981a60ef9..6d75b9e75 100644 --- a/nix/node_modules.nix +++ b/nix/node_modules.nix @@ -2,8 +2,6 @@ lib, stdenvNoCC, bun, - bunCpu ? if stdenvNoCC.hostPlatform.isAarch64 then "arm64" else "x64", - bunOs ? if stdenvNoCC.hostPlatform.isLinux then "linux" else "darwin", rev ? "dirty", hash ? (lib.pipe ./hashes.json [ @@ -16,6 +14,9 @@ let builtins.readFile builtins.fromJSON ]; + platform = stdenvNoCC.hostPlatform; + bunCpu = if platform.isAarch64 then "arm64" else "x64"; + bunOs = if platform.isLinux then "linux" else "darwin"; in stdenvNoCC.mkDerivation { pname = "opencode-node_modules"; @@ -39,9 +40,7 @@ stdenvNoCC.mkDerivation { "SOCKS_SERVER" ]; - nativeBuildInputs = [ - bun - ]; + nativeBuildInputs = [ bun ]; dontConfigure = true; @@ -63,10 +62,8 @@ stdenvNoCC.mkDerivation { installPhase = '' runHook preInstall - mkdir -p $out find . -type d -name node_modules -exec cp -R --parents {} $out \; - runHook postInstall ''; |
