diff options
author | Florian Klink <flokli@flokli.de> | 2024-04-12T16·23+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-04-13T10·44+0000 |
commit | a4f65ddba06f1170905f7f0ea03616bd690b13d0 (patch) | |
tree | c628a507c2247780fe836cbcac6746bb87ac0016 /tvix/Cargo.nix | |
parent | 863c4207cc2adbbcbfa539fbfb4765c135801e77 (diff) |
feat(tvix/store/bin): add "copy" command r/7900
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 <tvl@lahfa.xyz> Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/Cargo.nix')
-rw-r--r-- | tvix/Cargo.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tvix/Cargo.nix b/tvix/Cargo.nix index f4bc00bb3c43..6886685b63aa 100644 --- a/tvix/Cargo.nix +++ b/tvix/Cargo.nix @@ -14550,6 +14550,10 @@ rec { features = [ "derive" ]; } { + name = "serde_json"; + packageId = "serde_json"; + } + { name = "serde_qs"; packageId = "serde_qs"; } |