diff options
| author | Caleb Norton <[email protected]> | 2026-01-18 11:14:13 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-18 11:14:13 -0600 |
| commit | dac099a4892689d11abedb0fcc1098b50e0958c8 (patch) | |
| tree | b47a7a4bae294e0d4222fac21605a380d54b3341 /nix/node-modules.nix | |
| parent | 5009f10406c15c4b69c04fa626756ee7bf81b300 (diff) | |
| download | opencode-dac099a4892689d11abedb0fcc1098b50e0958c8.tar.gz opencode-dac099a4892689d11abedb0fcc1098b50e0958c8.zip | |
feat(nix): overhaul nix flake and packages (#9032)
Diffstat (limited to 'nix/node-modules.nix')
| -rw-r--r-- | nix/node-modules.nix | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/nix/node-modules.nix b/nix/node-modules.nix deleted file mode 100644 index 2a8f0a47c..000000000 --- a/nix/node-modules.nix +++ /dev/null @@ -1,62 +0,0 @@ -{ - hash, - lib, - stdenvNoCC, - bun, - cacert, - curl, - bunCpu, - bunOs, -}: -args: -stdenvNoCC.mkDerivation { - pname = "opencode-node_modules"; - inherit (args) version src; - - impureEnvVars = lib.fetchers.proxyImpureEnvVars ++ [ - "GIT_PROXY_COMMAND" - "SOCKS_SERVER" - ]; - - nativeBuildInputs = [ - bun - cacert - curl - ]; - - dontConfigure = true; - - buildPhase = '' - runHook preBuild - export HOME=$(mktemp -d) - export BUN_INSTALL_CACHE_DIR=$(mktemp -d) - bun install \ - --cpu="${bunCpu}" \ - --os="${bunOs}" \ - --frozen-lockfile \ - --ignore-scripts \ - --no-progress \ - --linker=isolated - bun --bun ${args.canonicalizeScript} - bun --bun ${args.normalizeBinsScript} - runHook postBuild - ''; - - installPhase = '' - runHook preInstall - mkdir -p $out - while IFS= read -r dir; do - rel="''${dir#./}" - dest="$out/$rel" - mkdir -p "$(dirname "$dest")" - cp -R "$dir" "$dest" - done < <(find . -type d -name node_modules -prune | sort) - runHook postInstall - ''; - - dontFixup = true; - - outputHashAlgo = "sha256"; - outputHashMode = "recursive"; - outputHash = hash; -} |
