aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/populate/src/flake_input.rs
Commit message (Collapse)AuthorAgeFilesLines
* populate: copy flakes only if the target lacks some of their store pathstv2026-11-141-3/+14
| | | | | | | nix copy connects anew, without the shared connection, also when the target has all of a flake's store paths already, and then copies nothing. The shared connection tells which store paths the target lacks, and nix copy only copies those, if any.
* populate: deliver flake and flake-input sources natively in Rusttv2026-11-131-0/+777
src/flake_input.rs reads what nix flake metadata and nix flake archive print as JSON itself: it selects the flake or input, decides what the target fetches or gets copied, and computes the store paths to root, which are what selected.jq, selfIsRemote.jq, selfLocked.jq, and the Nix expressions of the shell implementation do there. On the target, fixed snippets in sh::flake run Nix, getting values as positional parameters, and send JSON or store paths back. The jq test's cases are unit tests of the Rust equivalents.