opencode: 0.14.7 -> 0.15.0 (#451403)

This commit is contained in:
Gaétan Lepage
2025-10-12 19:38:36 +00:00
committed by GitHub

View File

@@ -22,12 +22,12 @@ let
in in
stdenvNoCC.mkDerivation (finalAttrs: { stdenvNoCC.mkDerivation (finalAttrs: {
pname = "opencode"; pname = "opencode";
version = "0.14.7"; version = "0.15.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sst"; owner = "sst";
repo = "opencode"; repo = "opencode";
tag = "v${finalAttrs.version}"; tag = "v${finalAttrs.version}";
hash = "sha256-7Sf74H2ptZoKkOyqy3JU71B2r2DBdosChiWA0dNpiV0="; hash = "sha256-WTWLh50atZ0P+S0BIgInRoaQV94wIO7NJXrpnsiXTAU=";
}; };
tui = buildGoModule { tui = buildGoModule {
@@ -75,18 +75,24 @@ stdenvNoCC.mkDerivation (finalAttrs: {
buildPhase = '' buildPhase = ''
runHook preBuild runHook preBuild
export BUN_INSTALL_CACHE_DIR=$(mktemp -d) export BUN_INSTALL_CACHE_DIR=$(mktemp -d)
# Disable post-install scripts to avoid shebang issues # NOTE: Disabling post-install scripts with `--ignore-scripts` to avoid
bun install \ # shebang issues
--filter=opencode \ # NOTE: `--linker=hoisted` temporarily disables Bun's isolated installs,
--force \ # which became the default in Bun 1.3.0.
--ignore-scripts \ # See: https://bun.com/blog/bun-v1.3#isolated-installs-are-now-the-default-for-workspaces
--no-progress # This workaround is required because the 'yargs' dependency is currently
# Remove `--frozen-lockfile` and `--production` they erroneously report the lockfile needs updating even though `bun install` does not change it. # missing when building opencode. Remove this flag once upstream is
# Related to https://github.com/oven-sh/bun/issues/19088 # compatible with Bun 1.3.0.
# --frozen-lockfile \ bun install \
# --production --filter=opencode \
--force \
--frozen-lockfile \
--ignore-scripts \
--linker=hoisted \
--no-progress \
--production
runHook postBuild runHook postBuild
''; '';
@@ -105,10 +111,10 @@ stdenvNoCC.mkDerivation (finalAttrs: {
outputHash = outputHash =
{ {
x86_64-linux = "sha256-j6p52NXqKsOiySJO83r3qUvxLs1yt8dPG8q5ClOPLA8="; x86_64-linux = "sha256-kXsLJ/Ck9epH9md6goCj3IYpWog/pOkfxJDYAxI14Fg=";
aarch64-linux = "sha256-gxAwc34PIN1ErVchyoX7Fv/VhPHzxVOC/F6P8hSeO/w="; aarch64-linux = "sha256-DHzDyk7BWYgBNhYDlK3dLZglUN7bMiB3acdoU7djbxU=";
x86_64-darwin = "sha256-0I6nTjc7gChk2Djv4hFfKMp0wM3ZX57/pCsPVHSDPqk="; x86_64-darwin = "sha256-OTEK9SV9IxBHrJlf+F4lI7gF0Gtvik3c7d1mp+4a3Zk=";
aarch64-darwin = "sha256-a/WWhsOP4pZfj5+Vlsyt/adaTTgMt2SlH3UOA+sXNgA="; aarch64-darwin = "sha256-qlLfus/cyrI0HtwVLTjPTdL7OeIYjmH9yoNKa6YNBkg=";
} }
.${stdenv.hostPlatform.system}; .${stdenv.hostPlatform.system};
outputHashAlgo = "sha256"; outputHashAlgo = "sha256";