From ceb2c0ba895554c7cabb0ac20d3a80ea2aba1ab1 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Mon, 2 Jan 2023 14:37:08 +0100 Subject: chore(tvix/store): make importable This allows other crates to import tvix_store. Rename the bin crate to tvix-store-bin, to avoid having multiple crates with the same name (https://github.com/rust-lang/cargo/issues/6313) Change-Id: I857768d6115640dbf102e79ed03e8474090df2fe Reviewed-on: https://cl.tvl.fyi/c/depot/+/7728 Tested-by: BuildkiteCI Reviewed-by: tazjin --- tvix/store/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tvix/store/default.nix') diff --git a/tvix/store/default.nix b/tvix/store/default.nix index 68b529e723b1..65289cacc87c 100644 --- a/tvix/store/default.nix +++ b/tvix/store/default.nix @@ -11,7 +11,7 @@ let protobufDep = prev: (prev.nativeBuildInputs or [ ]) ++ [ pkgs.protobuf ]; in -depot.tvix.crates.workspaceMembers.tvix-store.build.override { +depot.tvix.crates.workspaceMembers.tvix-store-bin.build.override { # Ensure protobuf dependencies are available. # TODO: figure out a way to embed this directly in the //tvix # crate2nix config. @@ -28,6 +28,11 @@ depot.tvix.crates.workspaceMembers.tvix-store.build.override { PROTO_ROOT = protoRoot; nativeBuildInputs = protobufDep prev; }; + + tvix-store-bin = prev: { + PROTO_ROOT = protoRoot; + nativeBuildInputs = protobufDep prev; + }; }; runTests = true; -- cgit 1.4.1