From 8486f87e3c180732d04e58154762c016c054d776 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sat, 9 Dec 2023 12:53:17 +0200 Subject: feat(tvix/build): add derivation_to_build_request This function converts from a nix_compat::derivation::Derivation to a BuildRequest. In addition to the Derivation itself, it needs two lookup functions to map input paths to their castore nodes. Change-Id: I0332982f0bc7933a5fda137fe39d5a850639d929 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10236 Autosubmit: flokli Tested-by: BuildkiteCI Reviewed-by: raitobezarius --- tvix/Cargo.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tvix/Cargo.nix') diff --git a/tvix/Cargo.nix b/tvix/Cargo.nix index 6151fd76d3..826ebf3208 100644 --- a/tvix/Cargo.nix +++ b/tvix/Cargo.nix @@ -9369,6 +9369,10 @@ rec { then lib.cleanSourceWith { filter = sourceFilter; src = ./build; } else ./build; dependencies = [ + { + name = "bytes"; + packageId = "bytes"; + } { name = "prost"; packageId = "prost"; @@ -9818,6 +9822,11 @@ rec { name = "tracing"; packageId = "tracing"; } + { + name = "tvix-build"; + packageId = "tvix-build"; + usesDefaultFeatures = false; + } { name = "tvix-castore"; packageId = "tvix-castore"; @@ -9837,6 +9846,10 @@ rec { } ]; devDependencies = [ + { + name = "lazy_static"; + packageId = "lazy_static"; + } { name = "test-case"; packageId = "test-case"; -- cgit 1.4.1