vector: migrate to bindgenHook

This commit is contained in:
Weijia Wang
2023-05-27 17:45:06 -04:00
committed by Yt
parent 7bdafdd1c9
commit fe1bb502a3
+1 -4
View File
@@ -1,10 +1,8 @@
{ stdenv
, lib
, fetchFromGitHub
, fetchpatch
, rustPlatform
, pkg-config
, llvmPackages
, openssl
, protobuf
, rdkafka
@@ -58,7 +56,7 @@ rustPlatform.buildRustPackage {
"tracing-0.2.0" = "sha256-YAxeEofFA43PX2hafh3RY+C81a2v6n1fGzYz2FycC3M=";
};
};
nativeBuildInputs = [ pkg-config cmake perl git ];
nativeBuildInputs = [ pkg-config cmake perl git rustPlatform.bindgenHook ];
buildInputs = [ oniguruma openssl protobuf rdkafka zstd ]
++ lib.optionals stdenv.isDarwin [ Security libiconv coreutils CoreServices ];
@@ -66,7 +64,6 @@ rustPlatform.buildRustPackage {
PROTOC = "${protobuf}/bin/protoc";
PROTOC_INCLUDE = "${protobuf}/include";
RUSTONIG_SYSTEM_LIBONIG = true;
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
TZDIR = "${tzdata}/share/zoneinfo";