wf test
This commit is contained in:
@@ -74,8 +74,20 @@ jobs:
|
|||||||
local pkg=$1
|
local pkg=$1
|
||||||
local before_hash=$(git rev-parse HEAD)
|
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..."
|
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
|
if [ "$(check_commit "$before_hash")" = "true" ]; then
|
||||||
echo "✓ Updated $pkg"
|
echo "✓ Updated $pkg"
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
@@ -13,12 +13,12 @@
|
|||||||
writableTmpDirAsHomeHook,
|
writableTmpDirAsHomeHook,
|
||||||
}: let
|
}: let
|
||||||
pname = "opencode";
|
pname = "opencode";
|
||||||
version = "1.1.25";
|
version = "1.1.18";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "anomalyco";
|
owner = "anomalyco";
|
||||||
repo = "opencode";
|
repo = "opencode";
|
||||||
tag = "v${version}";
|
tag = "v${version}";
|
||||||
hash = "sha256-aF+4LL0x9wU2Ktrv/nJE2VXgUeXFrwJ16pa1sGNhpi4=";
|
hash = "sha256-3A4s0FpjZuGB0HGMQVBXfWq+0yHmeIvnEQTSX3amV4I=";
|
||||||
};
|
};
|
||||||
|
|
||||||
node_modules = stdenvNoCC.mkDerivation {
|
node_modules = stdenvNoCC.mkDerivation {
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
# NOTE: Required else we get errors that our fixed-output derivation references store paths
|
# NOTE: Required else we get errors that our fixed-output derivation references store paths
|
||||||
dontFixup = true;
|
dontFixup = true;
|
||||||
|
|
||||||
outputHash = "sha256-qheQCN71VM3M35+j9XhaCdxQNo5ze8mV8sDFaX0WVWM=";
|
outputHash = "sha256-zSco4ORQQOqV3vMPuP+M/q/hBa+MJGnTKIlxgngMA3g=";
|
||||||
outputHashAlgo = "sha256";
|
outputHashAlgo = "sha256";
|
||||||
outputHashMode = "recursive";
|
outputHashMode = "recursive";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user