From bcc99b83d03303967cd5bbfa51972de4f528aab1 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Fri, 21 May 2021 23:00:19 +0100 Subject: [PATCH] libpoly: fix darwin build issue reported upstream --- pkgs/applications/science/logic/poly/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/applications/science/logic/poly/default.nix b/pkgs/applications/science/logic/poly/default.nix index d0344a3737da..75ad91bc54de 100644 --- a/pkgs/applications/science/logic/poly/default.nix +++ b/pkgs/applications/science/logic/poly/default.nix @@ -12,6 +12,13 @@ stdenv.mkDerivation rec { sha256 = "sha256-E2lHo8Bt4ujoGQ623fjkQbqRnDYJYilXdRt4lnF4wJk="; }; + # https://github.com/SRI-CSL/libpoly/pull/52 + postPatch = lib.optionalString stdenv.isDarwin '' + substituteInPlace src/CMakeLists.txt --replace \ + '"utils/open_memstream.c ''${poly_SOURCES}"' \ + 'utils/open_memstream.c ''${poly_SOURCES}' + ''; + nativeBuildInputs = [ cmake ]; buildInputs = [ gmp python3 ];