surrealpatch/pkg/nix/spec/x86_64-unknown-linux-gnu.nix

28 lines
681 B
Nix
Raw Normal View History

{ 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";
CARGO_BUILD_TARGET = target;
};
}