sharpsat-td: patch with updated version of mpreal/mpfrc++

this version is needed for mpfr 4.2.0+ support

lesson - don't merge old PRs without re-testing them yourself

+20 -1
+20 -1
pkgs/applications/science/logic/sharpsat-td/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, fetchzip, cmake, gmp, mpfr }: 2 3 let 4 satlib-bmc = fetchzip { ··· 7 sha256 = "sha256-F1Jfrj4iMMf/3LFCShIDMs4JfLkJ51Z4wkL1FDT9b/A="; 8 }; 9 10 in stdenv.mkDerivation rec { 11 pname = "sharpsat-td"; 12 version = "unstable-2021-09-05"; ··· 27 --replace '"../../../flow-cutter-pace17/flow_cutter_pace17"' '"'"$out"'/bin/flow_cutter_pace17"' 28 substituteInPlace src/preprocessor/treewidth.cpp \ 29 --replace '"./flow_cutter_pace17"' '"'"$out"'/bin/flow_cutter_pace17"' 30 ''; 31 32 nativeBuildInputs = [ cmake ];
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , fetchzip 5 + , cmake 6 + , gmp 7 + , mpfr 8 + }: 9 10 let 11 satlib-bmc = fetchzip { ··· 14 sha256 = "sha256-F1Jfrj4iMMf/3LFCShIDMs4JfLkJ51Z4wkL1FDT9b/A="; 15 }; 16 17 + # needed for mpfr 4.2.0+ support 18 + mpreal = fetchFromGitHub { 19 + owner = "advanpix"; 20 + repo = "mpreal"; 21 + rev = "mpfrc++-3.6.9"; 22 + sha256 = "sha256-l61SKEx4pBocADrEGPVacQ6F2ep9IuvNZ8W08dKeZKg="; 23 + }; 24 + 25 in stdenv.mkDerivation rec { 26 pname = "sharpsat-td"; 27 version = "unstable-2021-09-05"; ··· 42 --replace '"../../../flow-cutter-pace17/flow_cutter_pace17"' '"'"$out"'/bin/flow_cutter_pace17"' 43 substituteInPlace src/preprocessor/treewidth.cpp \ 44 --replace '"./flow_cutter_pace17"' '"'"$out"'/bin/flow_cutter_pace17"' 45 + 46 + # replace bundled version of mpreal/mpfrc++ 47 + rm -r src/mpfr 48 + cp -r ${mpreal} src/mpfr 49 ''; 50 51 nativeBuildInputs = [ cmake ];