2022-10-04 16:32:44 +00:00
|
|
|
{ pkgs, target, util }:
|
|
|
|
|
|
|
|
{
|
|
|
|
inherit target;
|
|
|
|
|
|
|
|
features = with util.features;
|
|
|
|
[ default storage-tikv ]
|
|
|
|
++ pkgs.lib.lists.optional (util.fdbSupported pkgs.fdbPackages)
|
|
|
|
[ storage-fdb ];
|
|
|
|
|
|
|
|
buildSpec = with pkgs;
|
|
|
|
let crossCompiling = !util.isNative target;
|
|
|
|
in {
|
2023-07-25 11:37:43 +00:00
|
|
|
depsBuildBuild = [ clang cmake gcc perl protobuf grpc llvm ]
|
2022-10-04 16:32:44 +00:00
|
|
|
++ lib.lists.optional crossCompiling qemu;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ openssl ]
|
|
|
|
++ lib.lists.optional (util.fdbSupported fdbPackages)
|
|
|
|
(util.fdbPackage fdbPackages);
|
|
|
|
|
|
|
|
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
|
|
|
|
|
2023-03-29 18:16:18 +00:00
|
|
|
PROTOC = "${protobuf}/bin/protoc";
|
|
|
|
PROTOC_INCLUDE = "${protobuf}/include";
|
|
|
|
|
2022-10-04 16:32:44 +00:00
|
|
|
CARGO_BUILD_TARGET = target;
|
|
|
|
};
|
|
|
|
}
|