Unverified Commit 62f53130 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

opencode{,-desktop}: 1.3.2 -> 1.3.7 (#504988)

parents 5178a470 15b9a7f5
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
  fetchFromGitHub,
  makeBinaryWrapper,
  models-dev,
  nodejs,
  nix-update-script,
  ripgrep,
  sysctl,
@@ -15,13 +16,13 @@

stdenvNoCC.mkDerivation (finalAttrs: {
  pname = "opencode";
  version = "1.3.2";
  version = "1.3.7";

  src = fetchFromGitHub {
    owner = "anomalyco";
    repo = "opencode";
    tag = "v${finalAttrs.version}";
    hash = "sha256-04eOIBHX9e8Brwn+uL/7q8szvRUilr4G0B8eB76dhKU=";
    hash = "sha256-DL/3AFyYevK4SD3pC+goTHLrlD29dRoyL0QAlxZDLcU=";
  };

  node_modules = stdenvNoCC.mkDerivation {
@@ -46,8 +47,9 @@ stdenvNoCC.mkDerivation (finalAttrs: {
      bun install \
        --cpu="*" \
        --frozen-lockfile \
        --filter ./packages/opencode \
        --filter ./packages/app \
        --filter ./packages/desktop \
        --filter ./packages/opencode \
        --ignore-scripts \
        --no-progress \
        --os="*"
@@ -70,13 +72,14 @@ stdenvNoCC.mkDerivation (finalAttrs: {
    # NOTE: Required else we get errors that our fixed-output derivation references store paths
    dontFixup = true;

    outputHash = "sha256-LRLKvI1tfIebiVP6SQIs7heoOqAsB+FaCnrpFE0VLe4=";
    outputHash = "sha256-//yE+ngjobja2Y5yIcvW0oEVSu85nqNAvjWu5OyISGU=";
    outputHashAlgo = "sha256";
    outputHashMode = "recursive";
  };

  nativeBuildInputs = [
    bun
    nodejs
    installShellFiles
    makeBinaryWrapper
    models-dev
@@ -94,6 +97,8 @@ stdenvNoCC.mkDerivation (finalAttrs: {
    runHook preConfigure

    cp -R ${finalAttrs.node_modules}/. .
    patchShebangs node_modules
    patchShebangs packages/*/node_modules

    runHook postConfigure
  '';