Unverified Commit 2d05a35a authored by Thierry Delafontaine's avatar Thierry Delafontaine
Browse files

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

(cherry picked from commit 6f4fff59)
parent 1a8d88e6
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