From a4f65ddba06f1170905f7f0ea03616bd690b13d0 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Fri, 12 Apr 2024 19:23:25 +0300 Subject: feat(tvix/store/bin): add "copy" command This allows copying individual store paths from the local /nix/store into tvix-store. As we don't support getting this information from Nix yet, we currently expect metadata to be provided externally: Nix' `exportReferencesGraph` feature contains pretty much all data we need for this. Expect a list of this information at a well-known key (`closure`, similar to nixpkgs' `pkgs/build-support/binary-cache/ default.nix`). We currently simply upload all store paths sequentially, without any parallelism or awareness in how the reference graph looks like. As long as the connected stores don't enforce this, this is fine, at least for now. Change-Id: Ib83c998465adddfdb110db994843c44e26b3d3d8 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11397 Reviewed-by: raitobezarius Tested-by: BuildkiteCI Autosubmit: flokli --- tvix/Cargo.lock | 1 + 1 file changed, 1 insertion(+) (limited to 'tvix/Cargo.lock') diff --git a/tvix/Cargo.lock b/tvix/Cargo.lock index 1fff246e86..d53ced76ae 100644 --- a/tvix/Cargo.lock +++ b/tvix/Cargo.lock @@ -4528,6 +4528,7 @@ dependencies = [ "rstest", "rstest_reuse", "serde", + "serde_json", "serde_qs", "serde_with", "sha2", -- cgit 1.4.1