surrealpatch/pkg/nix/spec/x86_64-unknown-linux-gnu.nix
2023-12-12 15:05:09 +00:00

30 lines
802 B
Nix

{ pkgs, target, util }:
{
inherit target;
features = with util.features;
[ storage-mem storage-rocksdb scripting http storage-tikv ]
++ pkgs.lib.lists.optional (util.fdbSupported pkgs.fdbPackages)
[ storage-fdb ];
buildSpec = with pkgs;
let crossCompiling = !util.isNative target;
in {
depsBuildBuild = [ clang cmake gcc 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;
};
}