From 8e047a58c4475b9685a8232abc5851cdc54aabc7 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 26 Jul 2023 18:42:57 +0200 Subject: [PATCH] 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. --- pkgs/development/compilers/jsonnet/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/compilers/jsonnet/default.nix b/pkgs/development/compilers/jsonnet/default.nix index ce31fe08195a..8e723cdb8211 100644 --- a/pkgs/development/compilers/jsonnet/default.nix +++ b/pkgs/development/compilers/jsonnet/default.nix @@ -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"}" ];