jsonnet: fix build on darwin

Not setting -DBUILD_SHARED_BINARIES seems to fix the build on aarch64-
darwin and x86_64-darwin.

Fixes https://github.com/NixOS/nixpkgs/issues/239912.
This commit is contained in:
Florian Klink 2023-07-26 18:42:57 +02:00
parent 02a5e9c933
commit 8e047a58c4

View File

@ -18,6 +18,7 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DUSE_SYSTEM_GTEST=ON"
"-DBUILD_STATIC_LIBS=${if stdenv.hostPlatform.isStatic then "ON" else "OFF"}"
] ++ lib.optionals (!stdenv.isDarwin) [
"-DBUILD_SHARED_BINARIES=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}"
];