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 }: 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , fetchzip 5 + , cmake 6 + , gmp 7 + , mpfr 8 + }: 2 9 3 10 let 4 11 satlib-bmc = fetchzip { ··· 7 14 sha256 = "sha256-F1Jfrj4iMMf/3LFCShIDMs4JfLkJ51Z4wkL1FDT9b/A="; 8 15 }; 9 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 + 10 25 in stdenv.mkDerivation rec { 11 26 pname = "sharpsat-td"; 12 27 version = "unstable-2021-09-05"; ··· 27 42 --replace '"../../../flow-cutter-pace17/flow_cutter_pace17"' '"'"$out"'/bin/flow_cutter_pace17"' 28 43 substituteInPlace src/preprocessor/treewidth.cpp \ 29 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 30 49 ''; 31 50 32 51 nativeBuildInputs = [ cmake ];