Loading pkgs/development/libraries/libff/default.nix +3 −4 Original line number Diff line number Diff line { lib, stdenv, fetchFromGitHub, cmake, boost, gmp, openssl, pkg-config }: { lib, stdenv, fetchFromGitHub, cmake, boost, gmp, openssl, pkg-config , enableStatic ? stdenv.hostPlatform.isStatic }: stdenv.mkDerivation rec { pname = "libff"; Loading @@ -15,9 +16,7 @@ stdenv.mkDerivation rec { cmakeFlags = [ "-DWITH_PROCPS=Off" ] ++ lib.optional stdenv.isAarch64 [ "-DCURVE=ALT_BN128" "-DUSE_ASM=OFF" ]; # CMake is hardcoded to always build static library which causes linker # failure for Haskell applications depending on haskellPackages.hevm on macOS. postPatch = lib.optionalString stdenv.isDarwin '' postPatch = lib.optionalString (!enableStatic) '' substituteInPlace libff/CMakeLists.txt --replace "STATIC" "SHARED" ''; Loading Loading
pkgs/development/libraries/libff/default.nix +3 −4 Original line number Diff line number Diff line { lib, stdenv, fetchFromGitHub, cmake, boost, gmp, openssl, pkg-config }: { lib, stdenv, fetchFromGitHub, cmake, boost, gmp, openssl, pkg-config , enableStatic ? stdenv.hostPlatform.isStatic }: stdenv.mkDerivation rec { pname = "libff"; Loading @@ -15,9 +16,7 @@ stdenv.mkDerivation rec { cmakeFlags = [ "-DWITH_PROCPS=Off" ] ++ lib.optional stdenv.isAarch64 [ "-DCURVE=ALT_BN128" "-DUSE_ASM=OFF" ]; # CMake is hardcoded to always build static library which causes linker # failure for Haskell applications depending on haskellPackages.hevm on macOS. postPatch = lib.optionalString stdenv.isDarwin '' postPatch = lib.optionalString (!enableStatic) '' substituteInPlace libff/CMakeLists.txt --replace "STATIC" "SHARED" ''; Loading