2022-12-07 12:05:02 +01:00
|
|
|
{ depot, pkgs, ... }:
|
2022-11-11 23:48:24 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
protoRoot = depot.nix.sparseTree depot.path.origSrc [
|
|
|
|
./protos/castore.proto
|
|
|
|
./protos/pathinfo.proto
|
2022-10-29 13:27:00 +02:00
|
|
|
./protos/rpc_blobstore.proto
|
2022-10-30 12:57:07 +01:00
|
|
|
./protos/rpc_directory.proto
|
2022-10-29 13:28:04 +02:00
|
|
|
./protos/rpc_pathinfo.proto
|
2022-11-11 23:48:24 +01:00
|
|
|
];
|
|
|
|
|
2022-12-07 12:05:02 +01:00
|
|
|
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;
|
|
|
|
};
|
2022-11-11 23:48:24 +01:00
|
|
|
|
2022-12-07 12:05:02 +01:00
|
|
|
tvix-store = prev: {
|
|
|
|
PROTO_ROOT = protoRoot;
|
|
|
|
nativeBuildInputs = protobufDep prev;
|
|
|
|
};
|
|
|
|
};
|
2022-11-11 23:48:24 +01:00
|
|
|
|
2022-12-07 12:05:02 +01:00
|
|
|
runTests = true;
|
2022-11-11 23:48:24 +01:00
|
|
|
}
|