surrealpatch/pkg/nix/spec/x86_64-unknown-linux-gnu.nix
2023-03-29 19:16:18 +01:00

30 lines
769 B
Nix

{ 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 {
depsBuildBuild = [ clang cmake gcc10 perl protobuf grpc llvm ]
++ 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";
PROTOC = "${protobuf}/bin/protoc";
PROTOC_INCLUDE = "${protobuf}/include";
CARGO_BUILD_TARGET = target;
};
}