Commit 8e047a58 authored by Florian Klink's avatar Florian Klink
Browse files

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.
parent 02a5e9c9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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"}"
  ];