Skip to content

Commit

Permalink
nix: make bindgen to work on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
vlaci committed Dec 14, 2023
1 parent 99271c8 commit 2e65dbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyperscan.nix
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ let
++ (optionals (vendorVectorscan) [ "-F vectorscan" ]);

nativeBuildInputs = with rustPlatform; [
bindgenHook
cargoSetupHook
(maturinBuildHook.override { pkgsHostTarget = { inherit maturin cargo rustc; }; })
] ++ optional (vendor && stdenv.isLinux) util-linux
++ optional (!stdenv.isDarwin) bindgenHook # HACK: bindgen segfaults on Darwin with LLVM from nixpkgs
++ optional coverage cargo-llvm-cov;

preConfigure = optionalString coverage ''
Expand Down

0 comments on commit 2e65dbe

Please sign in to comment.