From 841ddf3e6d5472362e45f3dbc079a368285467f9 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 13 Nov 2026 18:46:19 +0000 Subject: populate: draw flake inputs natively in Rust The program decides how to draw inputs and derive copies of flake and flake-input sources itself. The target runs fixed snippets, which send back what it needs to know: where paths resolve to and what's there, the lock files of flakes as nix flake metadata prints them, and what tells whether a derived copy needs to be made again. The program checks that drawn inputs exist in the lock files, computes the keys of derived copies, and writes generated flakes. Derived copies get the same keys as with the shell implementation, so switching implementations doesn't make them again. --- pkgs/populate/src/populate.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/populate/src/populate.rs') diff --git a/pkgs/populate/src/populate.rs b/pkgs/populate/src/populate.rs index ad0ec35..226cee2 100644 --- a/pkgs/populate/src/populate.rs +++ b/pkgs/populate/src/populate.rs @@ -34,7 +34,7 @@ pub fn populate(context: &Context, spec: &Spec) -> Result<()> { })?; deliver(context, name, source, &path, workdir)?; } - context.run(&flake::flakes(context, dir, &spec.source), &[])?; + flake::flakes(context, dir, &spec.source)?; if spec.prune { let flakes = spec .source -- cgit v1.3.1