surrealpatch/pkg/nix/spec/x86_64-apple-darwin.nix
2023-05-11 14:43:41 -04:00

23 lines
576 B
Nix

{ pkgs, target, util }:
{
inherit target;
features = with util.features; [ default storage-tikv ];
buildSpec = with pkgs; {
depsBuildBuild = [ clang protobuf perl ];
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ openssl libiconv darwin.apple_sdk.frameworks.Security ];
# From https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/rocksdb/default.nix#LL43C7-L52C6
NIX_CFLAGS_COMPILE = toString ([
"-Wno-error=unused-private-field"
"-faligned-allocation"
]);
CARGO_BUILD_TARGET = target;
};
}