Merge pull request #150855 from arcz/sbv-aarch64

haskellPackages.sbv: fix build on aarch64
This commit is contained in:
maralorn 2021-12-15 18:12:12 +01:00 committed by GitHub
commit 52e7900640
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -502,12 +502,15 @@ self: super: builtins.intersectAttrs super {
postPatch = ''
sed -i -e 's|"abc"|"${pkgs.abc-verifier}/bin/abc"|' Data/SBV/Provers/ABC.hs
sed -i -e 's|"boolector"|"${pkgs.boolector}/bin/boolector"|' Data/SBV/Provers/Boolector.hs
sed -i -e 's|"cvc4"|"${pkgs.cvc4}/bin/cvc4"|' Data/SBV/Provers/CVC4.hs
sed -i -e 's|"yices-smt2"|"${pkgs.yices}/bin/yices-smt2"|' Data/SBV/Provers/Yices.hs
sed -i -e 's|"z3"|"${pkgs.z3}/bin/z3"|' Data/SBV/Provers/Z3.hs
'' + (if pkgs.stdenv.isAarch64 then ''
sed -i -e 's|\[abc, boolector, cvc4, mathSAT, yices, z3, dReal\]|[abc, boolector, yices, z3]|' SBVTestSuite/SBVConnectionTest.hs
''
else ''
sed -i -e 's|"cvc4"|"${pkgs.cvc4}/bin/cvc4"|' Data/SBV/Provers/CVC4.hs
sed -i -e 's|\[abc, boolector, cvc4, mathSAT, yices, z3, dReal\]|[abc, boolector, cvc4, yices, z3]|' SBVTestSuite/SBVConnectionTest.hs
'';
'');
}) super.sbv;
# The test-suite requires a running PostgreSQL server.