libff: shared build on darwin

This commit is contained in:
Artur Cygan
2020-12-11 12:23:05 -08:00
committed by Jonathan Ringer
parent 9101c027ae
commit 5a33e44776
@@ -14,6 +14,12 @@ stdenv.mkDerivation rec {
cmakeFlags = [ "-DWITH_PROCPS=Off" ];
# CMake is hardcoded to always build static library which causes linker
# failure for Haskell applications depending on haskellPackages.hevm on macOS.
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace libff/CMakeLists.txt --replace "STATIC" "SHARED"
'';
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ boost gmp openssl ];