Skip to content

feat: auto-update flake sources on release#44

Merged
robcohen merged 1 commit intomainfrom
feat/flake-auto-update
Jan 26, 2026
Merged

feat: auto-update flake sources on release#44
robcohen merged 1 commit intomainfrom
feat/flake-auto-update

Conversation

@robcohen
Copy link
Copy Markdown
Member

Summary

  • Add desktop-sources.json to store version and hashes for each platform
  • Update flake.nix to read sources from JSON file instead of hardcoded values
  • Add update-flake-sources workflow that triggers on release publish

How it works

  1. When a release is published, the workflow runs
  2. It downloads the tarball and computes the SRI hash using nix-prefetch-url
  3. Updates desktop-sources.json with the new version and hash
  4. Creates a PR with the changes

Test plan

  • nix flake check passes
  • Manual trigger of workflow after v0.1.2 release completes

🤖 Generated with Claude Code

- Add desktop-sources.json to store version and hashes
- Update flake.nix to read sources from JSON file
- Add update-flake-sources workflow that:
  - Triggers on release publish
  - Fetches tarball and computes SRI hash
  - Creates PR to update desktop-sources.json

This enables `nix run github:rustledger/rustfava#desktop` to work
with released binaries, with automatic hash updates via CI.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@robcohen robcohen merged commit 5155c5b into main Jan 26, 2026
23 checks passed
@robcohen robcohen deleted the feat/flake-auto-update branch January 26, 2026 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant