diff --git a/crane.nix b/crane.nix index e53363b..75c1628 100644 --- a/crane.nix +++ b/crane.nix @@ -135,6 +135,12 @@ let doCheck = true; + # Temporary workaround for https://github.com/NixOS/nixpkgs/pull/207352#issuecomment-1418363441 + preBuild = '' + export LIBCLANG_PATH="${llvmPackages.libclang.lib}/lib" + export BINDGEN_EXTRA_CLANG_ARGS="$(< ${llvmPackages.clang}/nix-support/cc-cflags) $(< ${llvmPackages.clang}/nix-support/libc-cflags) $(< ${llvmPackages.clang}/nix-support/libcxx-cxxflags) $NIX_CFLAGS_COMPILE" + ''; + buildPhaseCargoCommand = ""; checkPhaseCargoCommand = "cargoWithProfile test --no-run --message-format=json >cargo-test.json"; doInstallCargoArtifacts = false;