diff options
author | Florian Klink <flokli@flokli.de> | 2023-07-26 18:42:57 +0200 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2023-07-26 18:46:37 +0200 |
commit | 8e047a58c4475b9685a8232abc5851cdc54aabc7 (patch) | |
tree | 08d91d2b0d0646f4fc211c99faf41e7f76eb52bf | |
parent | 02a5e9c93332836fb20911f82c6410936ee94ff9 (diff) |
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.
-rw-r--r-- | pkgs/development/compilers/jsonnet/default.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/development/compilers/jsonnet/default.nix b/pkgs/development/compilers/jsonnet/default.nix index ce31fe08195ad..8e723cdb82114 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"}" ]; |