mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-19 22:30:23 +00:00
opencode{,-desktop}: 1.18.16 -> 1.18.18 (#552292)
This commit is contained in:
@@ -28,6 +28,28 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
patches
|
||||
;
|
||||
|
||||
__structuredAttrs = true;
|
||||
strictDeps = true;
|
||||
|
||||
# The musl prebuilts ship libc.musl-*.so.1 SONAMEs that autoPatchelfHook can't
|
||||
# resolve on glibc systems. They aren't loaded at runtime on the host libc anyway.
|
||||
autoPatchelfIgnoreMissingDeps = [ "libc.musl-*.so.*" ];
|
||||
|
||||
postPatch =
|
||||
# The auto-updater would try to download and run an upstream binary that
|
||||
# isn't patched for Nix. Disable it at source.
|
||||
''
|
||||
substituteInPlace packages/desktop/src/main/constants.ts \
|
||||
--replace-fail 'app.isPackaged && CHANNEL !== "dev"' 'false'
|
||||
''
|
||||
+
|
||||
# Relax Bun version check to be a warning instead of an error
|
||||
''
|
||||
substituteInPlace packages/script/src/index.ts \
|
||||
--replace-fail 'throw new Error(`This script requires bun@''${expectedBunVersionRange}' \
|
||||
'console.warn(`Warning: This script requires bun@''${expectedBunVersionRange}'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
bun
|
||||
nodejs # for patchShebangs node_modules
|
||||
@@ -43,13 +65,6 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
(lib.getLib stdenv.cc.cc)
|
||||
];
|
||||
|
||||
# The musl prebuilts ship libc.musl-*.so.1 SONAMEs that autoPatchelfHook can't
|
||||
# resolve on glibc systems. They aren't loaded at runtime on the host libc anyway.
|
||||
autoPatchelfIgnoreMissingDeps = [ "libc.musl-*.so.*" ];
|
||||
|
||||
__structuredAttrs = true;
|
||||
strictDeps = true;
|
||||
|
||||
env = {
|
||||
ELECTRON_SKIP_BINARY_DOWNLOAD = "1";
|
||||
NODE_OPTIONS = "--max-old-space-size=4096";
|
||||
@@ -58,18 +73,6 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
OPENCODE_DISABLE_MODELS_FETCH = true;
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# The auto-updater would try to download and run an upstream binary that
|
||||
# isn't patched for Nix. Disable it at source.
|
||||
substituteInPlace packages/desktop/src/main/constants.ts \
|
||||
--replace-fail 'app.isPackaged && CHANNEL !== "dev"' 'false'
|
||||
|
||||
# Relax Bun version check to be a warning instead of an error
|
||||
substituteInPlace packages/script/src/index.ts \
|
||||
--replace-fail 'throw new Error(`This script requires bun@''${expectedBunVersionRange}' \
|
||||
'console.warn(`Warning: This script requires bun@''${expectedBunVersionRange}'
|
||||
'';
|
||||
|
||||
configurePhase = ''
|
||||
runHook preConfigure
|
||||
|
||||
|
||||
@@ -21,6 +21,9 @@ let
|
||||
pname = "${finalAttrs.pname}-node_modules";
|
||||
inherit (finalAttrs) version src;
|
||||
|
||||
__structuredAttrs = true;
|
||||
strictDeps = true;
|
||||
|
||||
impureEnvVars = lib.fetchers.proxyImpureEnvVars ++ [
|
||||
"GIT_PROXY_COMMAND"
|
||||
"SOCKS_SERVER"
|
||||
@@ -74,14 +77,14 @@ let
|
||||
# NOTE: Required else we get errors that our fixed-output derivation references store paths
|
||||
dontFixup = true;
|
||||
|
||||
outputHash = "sha256-GBLs3nXtfSeXb4jXxSNM8ElMa/e/EB4sZn3c2inHnco=";
|
||||
outputHash = "sha256-oU7qWOsY2TtVE+Gp2DhSXffm9OghTHcNhzDwwAovwZI=";
|
||||
outputHashAlgo = "sha256";
|
||||
outputHashMode = "recursive";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "opencode";
|
||||
version = "1.18.16";
|
||||
version = "1.18.18";
|
||||
|
||||
__structuredAttrs = true;
|
||||
strictDeps = true;
|
||||
@@ -90,7 +93,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
owner = "anomalyco";
|
||||
repo = "opencode";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-AP2W443Zk/X8j6BWfMgAEbR4BQiJgnPpr1OG6JWIprE=";
|
||||
hash = "sha256-rDVcv8j9KghTDwooPYriTloOMgTyVutud7xKLG2mTmk=";
|
||||
};
|
||||
|
||||
postPatch =
|
||||
|
||||
Reference in New Issue
Block a user