Merge pull request #308001 from NickCao/meilisearch

meilisearch: use rustPlatform.bindgenHook
This commit is contained in:
Nick Cao 2024-05-01 15:14:54 -04:00 committed by GitHub
commit 0ce23a7ed4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,7 +6,6 @@
, SystemConfiguration , SystemConfiguration
, nixosTests , nixosTests
, nix-update-script , nix-update-script
, libclang
}: }:
let version = "1.7.6"; let version = "1.7.6";
@ -40,12 +39,14 @@ rustPlatform.buildRustPackage {
# Default features include mini dashboard which downloads something from the internet. # Default features include mini dashboard which downloads something from the internet.
buildNoDefaultFeatures = true; buildNoDefaultFeatures = true;
nativeBuildInputs = [
rustPlatform.bindgenHook
];
buildInputs = lib.optionals stdenv.isDarwin [ buildInputs = lib.optionals stdenv.isDarwin [
Security SystemConfiguration Security SystemConfiguration
]; ];
env.LIBCLANG_PATH = "${libclang.lib}/lib";
passthru = { passthru = {
updateScript = nix-update-script { }; updateScript = nix-update-script { };
tests = { tests = {