From 96f5ecf73dba5762de4148ce2e9a0fdd3e13270f Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 13 Nov 2026 16:48:38 +0000 Subject: populate: deliver flakes and draw inputs with the Rust program The program delivers flake and flake-input sources, draws inputs from sources, and removes state that sources don't need anymore, so it does everything the shell implementation does, and passes all scenarios. src/flake.rs builds the same shell code as shell.nix generates for these, with every value quoted, so both implementations behave alike while that code moves to Rust piece by piece. The ssh scripts in the temporary directory run the ssh that was in PATH when populate started, so one can be ssh in PATH for nix copy. The other one is for nix copy's ssh:// store, without the control socket. --- pkgs/populate/src/main.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'pkgs/populate/src/main.rs') diff --git a/pkgs/populate/src/main.rs b/pkgs/populate/src/main.rs index dc0c511..c1e389a 100644 --- a/pkgs/populate/src/main.rs +++ b/pkgs/populate/src/main.rs @@ -2,6 +2,7 @@ //! JSON file or - for standard input, says. See docs/design.md. mod check; +mod flake; mod populate; mod rsync; mod run; -- cgit v1.3.1