Skip to content

Conversation

@pkpbynum
Copy link
Contributor

Motivation

This provides more granular control over paths as they are copied in a few ways:

  • Ability to control timing of copied paths
  • Ability to repair an individual path
  • Ability to control signature checking

Context

I'm not certain this is an API that should be exposed given the existing nix_store_copy_closure, but putting up a PR for feedback anyways. My primary motivation is to be able to monitor copy progress on a per-path basis. AFAIK the alternative way to do this is to log & parse the JSON format--not possible from FFI (?). I'm also using this to work around #14604 and #14569 by just orchestrating the copy over FFI, which works pretty well.

Tested on my fork calling from Rust.


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@pkpbynum pkpbynum requested a review from edolstra as a code owner December 10, 2025 16:45
@github-actions github-actions bot added the c api Nix as a C library with a stable interface label Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c api Nix as a C library with a stable interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant