opencode: 0.14.7 -> 0.15.0 (#451403)
This commit is contained in:
@@ -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 {
|
||||||
@@ -77,16 +77,22 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
|||||||
|
|
||||||
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
|
||||||
|
# shebang issues
|
||||||
|
# NOTE: `--linker=hoisted` temporarily disables Bun's isolated installs,
|
||||||
|
# which became the default in Bun 1.3.0.
|
||||||
|
# See: https://bun.com/blog/bun-v1.3#isolated-installs-are-now-the-default-for-workspaces
|
||||||
|
# This workaround is required because the 'yargs' dependency is currently
|
||||||
|
# missing when building opencode. Remove this flag once upstream is
|
||||||
|
# compatible with Bun 1.3.0.
|
||||||
bun install \
|
bun install \
|
||||||
--filter=opencode \
|
--filter=opencode \
|
||||||
--force \
|
--force \
|
||||||
|
--frozen-lockfile \
|
||||||
--ignore-scripts \
|
--ignore-scripts \
|
||||||
--no-progress
|
--linker=hoisted \
|
||||||
# Remove `--frozen-lockfile` and `--production` — they erroneously report the lockfile needs updating even though `bun install` does not change it.
|
--no-progress \
|
||||||
# Related to https://github.com/oven-sh/bun/issues/19088
|
--production
|
||||||
# --frozen-lockfile \
|
|
||||||
# --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";
|
||||||
|
|||||||
Reference in New Issue
Block a user