Unverified Commit 6f4fff59 authored by Thierry Delafontaine's avatar Thierry Delafontaine
Browse files

opencode: add comment for the necessity of `fix-model-macro.patch`

parent dabbedd7
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -113,7 +113,11 @@ stdenvNoCC.mkDerivation (finalAttrs: {

  nativeBuildInputs = [ bun ];

  patches = [ ./fix-models-macro.patch ];
  patches = [
    # Patch `packages/opencode/src/provider/models-macro.ts` to load the prefetched `models.dev/api.json`
    # from the `MODELS_JSON` environment variable instead of fetching it at build time.
    ./fix-models-macro.patch
  ];

  configurePhase = ''
    runHook preConfigure