chore(deps): upgrade clawdbot to v2026.1.20 and add automatic pnpmDepsHash computation

Merged
SH
9mo ago
+94-41

Changes

  • Upgraded clawdbot overlay from v2026.1.16-2 to v2026.1.20
  • Updated all related hashes (source hash, pnpmDepsHash, app hash)
  • Added automatic pnpmDepsHash computation function to upgrade-overlays.sh
  • Added pnpm-hash command to update only pnpmDepsHash when needed
  • Improved upgrade script to automatically compute correct pnpmDepsHash

Technical Details

  • The new compute_pnpm_deps_hash() function runs a build attempt with a fake hash
  • Extracts the correct hash from the nix build error output
  • Automatically updates overlays/default.nix with the computed hash
  • Allows manual hash updates via ./scripts/upgrade-overlays.sh pnpm-hash

Testing

  • Manual testing of pnpmDepsHash computation function
  • Verified hash extraction from build error output
  • Tested new pnpm-hash command

Generated with opencode by claude-3.5-sonnet


Summary by cubic

Upgrades the clawdbot overlay to v2026.1.20 and automates pnpmDepsHash updates to prevent manual fixes after Nix build failures.

  • Dependencies

    • Updated clawdbot source and app to v2026.1.20 with new hashes.
    • Refreshed flake.lock (nix-clawdbot, nixpkgs, home-manager, etc.).
  • New Features

    • Added compute_pnpm_deps_hash() to auto-derive pnpmDepsHash from a build error.
    • Introduced pnpm-hash command to update only pnpmDepsHash.
    • upgrade-overlays.sh now auto-updates pnpmDepsHash during clawdbot upgrades.