about summary refs log tree commit diff
path: root/tvix/boot/default.nix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2024-03-18T09·41+0200
committerflokli <flokli@flokli.de>2024-03-18T16·10+0000
commit997b59e4526d2313580c9c2de71285c77dc28e77 (patch)
tree7787662720cb578a3d9ae3a809d83232fc667d63 /tvix/boot/default.nix
parent8fb1d0ad4bb4f1fef019d2562ecdd70e409afbe5 (diff)
feat(tvix/boot): support seeding closures via nar-bridge r/7727
This updates the parameters mkBootTest can be called with. It now
accepts a `path`, and then either importPathName needs to be set, or
isClosure needs to be set to true.

The former activates the existing functionality, tvix-store import is
used to import contents  as a NAR-addressed store path.
The latter uploads the path as a closure (so including its references,
and keeping the store paths intact) to tvix-store.
We use nar-bridge, and the HTTP interface it provides to do this.
As `nix copy` can't be used inside a Nix build, we use
`pkgs.mkBinaryCache` to come up with the .narinfo and .nar files that
would be in a binary cache, and then use a bit of GNU Parallel and bash
to upload store paths ourselves.

Change-Id: Icfa5c0af0c22ab5418686947aa2c060f5987b873
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11188
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: Connor Brewster <cbrewster@hey.com>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/boot/default.nix')
0 files changed, 0 insertions, 0 deletions