This commit is contained in:
m3tm3re
2026-01-18 07:43:57 +01:00
parent 6398637353
commit ae9a0ceb10
2 changed files with 16 additions and 4 deletions

View File

@@ -74,8 +74,20 @@ jobs:
local pkg=$1
local before_hash=$(git rev-parse HEAD)
# Build arguments array
local args=("--flake" "--commit")
# Special handling for opencode
if [ "$pkg" = "opencode" ]; then
echo " Adding --subpackage node_modules for opencode"
args+=("--subpackage" "node_modules")
fi
# Add package name
args+=("$pkg")
echo "Checking $pkg..."
if nix-update --flake --commit "$pkg" 2>&1 | tee /tmp/update-${pkg}.log; then
if nix-update "${args[@]}" 2>&1 | tee /tmp/update-${pkg}.log; then
if [ "$(check_commit "$before_hash")" = "true" ]; then
echo "✓ Updated $pkg"
return 0

View File

@@ -13,12 +13,12 @@
writableTmpDirAsHomeHook,
}: let
pname = "opencode";
version = "1.1.25";
version = "1.1.18";
src = fetchFromGitHub {
owner = "anomalyco";
repo = "opencode";
tag = "v${version}";
hash = "sha256-aF+4LL0x9wU2Ktrv/nJE2VXgUeXFrwJ16pa1sGNhpi4=";
hash = "sha256-3A4s0FpjZuGB0HGMQVBXfWq+0yHmeIvnEQTSX3amV4I=";
};
node_modules = stdenvNoCC.mkDerivation {
@@ -66,7 +66,7 @@
# NOTE: Required else we get errors that our fixed-output derivation references store paths
dontFixup = true;
outputHash = "sha256-qheQCN71VM3M35+j9XhaCdxQNo5ze8mV8sDFaX0WVWM=";
outputHash = "sha256-zSco4ORQQOqV3vMPuP+M/q/hBa+MJGnTKIlxgngMA3g=";
outputHashAlgo = "sha256";
outputHashMode = "recursive";
};