about summary refs log tree commit diff
path: root/tvix/glue/src
diff options
context:
space:
mode:
authorRyan Lahfa <tvl@lahfa.xyz>2024-01-17T07·06+0100
committerclbot <clbot@tvl.fyi>2024-01-20T18·35+0000
commit3d8aafb1c73048bfa6b6dee6cc52b81c5d23e4ca (patch)
treeec48cfe801b59f24b9b4e7dfa4ced0594c20d11a /tvix/glue/src
parent4c3ba46ba36b2fa2d9079fcc92ef27875f26418b (diff)
feat(tvix/store): enable `name` customization in the store r/7433
Sometimes, Nix lets someone customize the `name` in the store for a
path, this is the case for `builtins.path` which takes a `name`
argument, we leave it to the caller to choose the name, which can be the
basename by default of the path.

Change-Id: Icdbf71d1d8f2dca5716b99d20aac885aab905b80
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10653
Tested-by: BuildkiteCI
Autosubmit: raitobezarius <tvl@lahfa.xyz>
Reviewed-by: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/glue/src')
-rw-r--r--tvix/glue/src/tvix_store_io.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tvix/glue/src/tvix_store_io.rs b/tvix/glue/src/tvix_store_io.rs
index 45bcf0df3ae8..1277a1d97792 100644
--- a/tvix/glue/src/tvix_store_io.rs
+++ b/tvix/glue/src/tvix_store_io.rs
@@ -276,6 +276,7 @@ impl EvalIO for TvixStoreIO {
         let output_path = self.tokio_handle.block_on(async {
             tvix_store::import::import_path_as_nar_ca(
                 path,
+                tvix_store::import::path_to_name(path)?,
                 &self.blob_service,
                 &self.directory_service,
                 &self.path_info_service,