5f9796cf94
This defines a service that can be used to get and put content-addressed chunks of data. Change-Id: I36cf2278ed1daf71848c04fdfd14450b2268c5de Reviewed-on: https://cl.tvl.fyi/c/depot/+/7135 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
28 lines
685 B
Nix
28 lines
685 B
Nix
{ depot, pkgs, ... }:
|
|
|
|
let
|
|
protoRoot = depot.nix.sparseTree depot.path.origSrc [
|
|
./protos/castore.proto
|
|
./protos/pathinfo.proto
|
|
./protos/rpc_blobstore.proto
|
|
];
|
|
|
|
protobufDep = prev: (prev.nativeBuildInputs or [ ]) ++ [ pkgs.protobuf ];
|
|
in
|
|
depot.tvix.crates.workspaceMembers.tvix-store.build.override {
|
|
# Ensure protobuf dependencies are available.
|
|
# TODO: figure out a way to embed this directly in the //tvix
|
|
# crate2nix config.
|
|
crateOverrides = {
|
|
prost-build = prev: {
|
|
nativeBuildInputs = protobufDep prev;
|
|
};
|
|
|
|
tvix-store = prev: {
|
|
PROTO_ROOT = protoRoot;
|
|
nativeBuildInputs = protobufDep prev;
|
|
};
|
|
};
|
|
|
|
runTests = true;
|
|
}
|