auto-nix-hash: support flakes in a subdirectory #330

Merged
Doridian merged 1 commit from auto-nix-hash-subdir into main 2026-10-09 15:10:05 -07:00
Owner

auto-nix-hash used to require flake.nix in the repo root. It now reads the flake directory from a package ref such as ./nix#foo, so repos with the flake in a subdirectory (FoxDen/core) can use it. Existing invocations behave the same.

Needed by the FoxDen/core PR that lets renovate maintain the vpn vendor hash; merge this one first.

Replaces #328, which was opened via AGit and so ran CI without secrets.

🤖 Generated with Claude Code

https://claude.ai/code/session_015msxKy6s3LhH3eU1HRFyu1

`auto-nix-hash` used to require `flake.nix` in the repo root. It now reads the flake directory from a package ref such as `./nix#foo`, so repos with the flake in a subdirectory (FoxDen/core) can use it. Existing invocations behave the same. Needed by the FoxDen/core PR that lets renovate maintain the vpn vendor hash; merge this one first. Replaces #328, which was opened via AGit and so ran CI without secrets. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_015msxKy6s3LhH3eU1HRFyu1
auto-nix-hash: support flakes in a subdirectory
Some checks failed
Run reposyncer / test (pull_request) Successful in 15s
Run reposyncer / reposyncer (pull_request) Successful in 23s
NodeJS check / check-nodejs (pull_request) Successful in 1m19s
Run renovate / renovate (pull_request) Has been cancelled
b9126084cf
Derive the flake directory from a package ref like ./nix#foo instead of
requiring flake.nix in the repo root.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XDdCNW6ANunCpKwDVPPe1G
Doridian deleted branch auto-nix-hash-subdir 2026-10-09 15:10:05 -07:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
FoxDen/maid!330
No description provided.