opencode: 0.1.194 -> 0.2.33 (#423443)

authored by Gaétan Lepage and committed by GitHub dd2290ee ef9f0fee

+12 -9
+12 -9
pkgs/by-name/op/opencode/package.nix
··· 12 13 let 14 opencode-node-modules-hash = { 15 - "aarch64-darwin" = "sha256-+eXXWskZg0CIY12+Ee4Y3uwpB5I92grDiZ600Whzx/I="; 16 - "aarch64-linux" = "sha256-rxLPrYAIiKDh6de/GACPfcYXY7nIskqAu1Xi12y5DpU="; 17 - "x86_64-darwin" = "sha256-LOz7N6gMRaZLPks+y5fDIMOuUCXTWpHIss1v0LHPnqw="; 18 - "x86_64-linux" = "sha256-GKLR+T+lCa7GFQr6HqSisfa4uf8F2b79RICZmePmCBE="; 19 }; 20 bun-target = { 21 "aarch64-darwin" = "bun-darwin-arm64"; ··· 26 in 27 stdenvNoCC.mkDerivation (finalAttrs: { 28 pname = "opencode"; 29 - version = "0.1.194"; 30 src = fetchFromGitHub { 31 owner = "sst"; 32 repo = "opencode"; 33 tag = "v${finalAttrs.version}"; 34 - hash = "sha256-51Mc0Qrg3C0JTpXl2OECKEUvle+6X+j9+/Blu8Nu9Ao="; 35 }; 36 37 tui = buildGoModule { ··· 39 inherit (finalAttrs) version; 40 src = "${finalAttrs.src}/packages/tui"; 41 42 - vendorHash = "sha256-hxtQHlaV2Em8CyTK3BNaoo/LgnGbMjj5XafbleF+p9I="; 43 44 subPackages = [ "cmd/opencode" ]; 45 ··· 113 114 nativeBuildInputs = [ bun ]; 115 116 - patches = [ ./fix-models-macro.patch ]; 117 118 configurePhase = '' 119 runHook preConfigure ··· 144 installPhase = '' 145 runHook preInstall 146 147 - mkdir -p $out/bin 148 install -Dm755 opencode $out/bin/opencode 149 150 runHook postInstall
··· 12 13 let 14 opencode-node-modules-hash = { 15 + "aarch64-darwin" = "sha256-uk8HQfHCKTAW54rNHZ1Rr0piZzeJdx6i4o0+xKjfFZs="; 16 + "aarch64-linux" = "sha256-gDQh8gfFKl0rAujtos1XsCUnxC2Vjyq9xH5FLZoNW5s="; 17 + "x86_64-darwin" = "sha256-H5+qa7vxhwNYRXUo4v8IFUToVXtyXzU3veIqu4idAbU="; 18 + "x86_64-linux" = "sha256-1ZxetDrrRdNNOfDOW2uMwMwpEs5S3BLF+SejWcRdtik="; 19 }; 20 bun-target = { 21 "aarch64-darwin" = "bun-darwin-arm64"; ··· 26 in 27 stdenvNoCC.mkDerivation (finalAttrs: { 28 pname = "opencode"; 29 + version = "0.2.33"; 30 src = fetchFromGitHub { 31 owner = "sst"; 32 repo = "opencode"; 33 tag = "v${finalAttrs.version}"; 34 + hash = "sha256-l/V9YHwuIPN73ieMT++enL1O5vecA9L0qBDGr8eRVxY="; 35 }; 36 37 tui = buildGoModule { ··· 39 inherit (finalAttrs) version; 40 src = "${finalAttrs.src}/packages/tui"; 41 42 + vendorHash = "sha256-0vf4fOk32BLF9/904W8g+5m0vpe6i6tUFRXqDHVcMIQ="; 43 44 subPackages = [ "cmd/opencode" ]; 45 ··· 113 114 nativeBuildInputs = [ bun ]; 115 116 + patches = [ 117 + # Patch `packages/opencode/src/provider/models-macro.ts` to load the prefetched `models.dev/api.json` 118 + # from the `MODELS_JSON` environment variable instead of fetching it at build time. 119 + ./fix-models-macro.patch 120 + ]; 121 122 configurePhase = '' 123 runHook preConfigure ··· 148 installPhase = '' 149 runHook preInstall 150 151 install -Dm755 opencode $out/bin/opencode 152 153 runHook postInstall