Merge pull request #245563 from flokli/fix-jsonnet-darwin

jsonnet: fix build on darwin
This commit is contained in:
Florian Klink 2023-07-26 19:35:27 +02:00 committed by GitHub
commit a0730a3244
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"}"
];