GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — opencode/nix/node_modules.nix at dev · chid/opencode Expand file tree/ Copy pathnode_modules.nixMore file actions 85 lines (76 loc) · 1.99 KB / Copy pathnode_modules.nixFile metadata and controls85 lines (76 loc) · 1.99 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 { lib, stdenvNoCC, bun, rev ? "dirty", hash ? (lib.pipe ./hashes.json [ builtins.readFile builtins.fromJSON ]).nodeModules.${stdenvNoCC.hostPlatform.system}, }: let packageJson = lib.pipe ../packages/opencode/package.json [ 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"; version = "${packageJson.version}+${lib.replaceString "-" "." rev}"; src = lib.fileset.toSource { root = ../.; fileset = lib.fileset.intersection (lib.fileset.fromSource (lib.sources.cleanSource ../.)) ( lib.fileset.unions [ ../packages ../bun.lock ../package.json ../patches ../install # required by desktop build (cli.rs include_str!) ../.github/TEAM_MEMBERS # required by @opencode-ai/script ] ); }; impureEnvVars = lib.fetchers.proxyImpureEnvVars ++ [ "GIT_PROXY_COMMAND" "SOCKS_SERVER" ]; nativeBuildInputs = [ bun ]; dontConfigure = true; buildPhase = '' runHook preBuild export BUN_INSTALL_CACHE_DIR=$(mktemp -d) bun install \ --cpu="${bunCpu}" \ --os="${bunOs}" \ --filter '!./' \ --filter './packages/opencode' \ --filter './packages/desktop' \ --filter './packages/app' \ --frozen-lockfile \ --ignore-scripts \ --no-progress bun --bun ${./scripts/canonicalize-node-modules.ts} bun --bun ${./scripts/normalize-bun-binaries.ts} runHook postBuild ''; installPhase = '' runHook preInstall mkdir -p $out find . -type d -name node_modules -exec cp -R --parents {} $out \; runHook postInstall ''; dontFixup = true; outputHashAlgo = "sha256"; outputHashMode = "recursive"; outputHash = hash; meta.platforms = [ "aarch64-linux" "x86_64-linux" "aarch64-darwin" "x86_64-darwin" ]; } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |