Make nix run from a git URL work (flake.lock, refs/tags) #46

Merged
littlefox merged 7 commits from issue-45-nix-lock into main 2026-10-17 17:56:01 +00:00
Owner

Closes #45

  • Commit flake.lock (nixpkgs pinned 2026-10-14).
  • Release notes use ref=refs/tags/v@VERSION@.
  • The nix CI job builds with --no-update-lock-file, so a missing or stale lock fails.
  • README gives the remote nix run command.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8

Closes #45 - Commit flake.lock (nixpkgs pinned 2026-10-14). - Release notes use ref=refs/tags/v@VERSION@. - The nix CI job builds with --no-update-lock-file, so a missing or stale lock fails. - README gives the remote nix run command. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
Make nix run from a git URL work: commit flake.lock, use refs/tags
Some checks failed
ci / check (push) Has started running
ci / e2e (push) Has started running
ci / desktop (push) Has started running
packaging / arch (push) Has started running
packaging / debian (push) Has started running
packaging / fedora (push) Has started running
packaging / nix (push) Has started running
packaging / release (push) Has been cancelled
1747794886
`nix run "git+https://...?ref=v0.1.0"` from the release notes failed
twice over. A bare ref is looked up as a branch, so tags need
refs/tags/. And flake.lock was never committed: from a checkout nix
writes it silently, so CI passed, but from a URL it refuses. The nix
job now builds with --no-update-lock-file, so a missing or stale lock
fails CI.

Refs #45

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
Bump to 0.1.1; read the version from the files in CI
Some checks failed
ci / check (push) Has started running
ci / e2e (push) Has started running
ci / desktop (push) Has started running
packaging / arch (push) Has started running
packaging / debian (push) Has started running
packaging / fedora (push) Has started running
packaging / nix (push) Failing after 6m57s
packaging / release (push) Has been cancelled
c7c95349b3
0.1.1 is the release with a working `nix run` from a git URL. The
packaging workflow hardcoded 0.1.0 in four places, so it now reads the
version from the PKGBUILD and the spec. tools/check-version.sh checks
that Cargo.toml, Cargo.lock, flake.nix, the PKGBUILD and the spec
agree; the nix job runs it on every change, and the release job also
checks them against the tag.

Refs #45

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
Note how to cut a release under D-027
Some checks failed
ci / check (push) Has started running
ci / e2e (push) Has started running
ci / desktop (push) Failing after 15m46s
23189b94d6
Refs #45

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
Merge remote-tracking branch 'origin/main' into issue-45-nix-lock
Some checks are pending
ci / check (push) Has started running
ci / e2e (push) Has started running
ci / desktop (push) Has started running
059ae26ab3
# Conflicts:
#	docs/DECISIONS.md
DECISIONS: blank line before D-028
Some checks failed
ci / check (push) Has started running
ci / e2e (push) Has been cancelled
ci / desktop (push) Has been cancelled
3c992f4bd7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
packaging: check versions in the Arch job; the nix image has no sed
Some checks failed
ci / check (push) Successful in 9m28s
ci / desktop (push) Successful in 10m24s
packaging / arch (push) Successful in 10m51s
ci / e2e (push) Failing after 15m57s
packaging / nix (push) Successful in 19m9s
packaging / debian (push) Successful in 26m35s
packaging / fedora (push) Successful in 32m24s
packaging / release (push) Has been skipped
666006e422
Run #70 failed at tools/check-version.sh: "sed: command not found"
in nixos/nix. archlinux:base-devel has it.

Refs #45

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
Merge remote-tracking branch 'origin/main' into issue-45-nix-lock
All checks were successful
ci / check (push) Successful in 6m30s
ci / desktop (push) Successful in 13m5s
ci / e2e (push) Successful in 13m38s
1b664e3998
Sign in to join this conversation.
No description provided.