git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #150855 from arcz/sbv-aarch64

haskellPackages.sbv: fix build on aarch64

commit52e7900640b28d13fb8996a38ffa368ea089d1eb authormaralorn <malte.brandy@maralorn.de> dateWed 15 Dec 2021, 18:12 (5 years ago) parent3253c2ccd60012
1 file changed+6−3
pkgs/development/haskell-modules/configuration-nix.nix+6−3
pkgs/development/haskell-modules/configuration-nix.nix+6−3
@@ -502,12 +502,15 @@ self: super: builtins.intersectAttrs super {
502502 postPatch = ''
503503 sed -i -e 's|"abc"|"${pkgs.abc-verifier}/bin/abc"|' Data/SBV/Provers/ABC.hs
504504 sed -i -e 's|"boolector"|"${pkgs.boolector}/bin/boolector"|' Data/SBV/Provers/Boolector.hs
505− sed -i -e 's|"cvc4"|"${pkgs.cvc4}/bin/cvc4"|' Data/SBV/Provers/CVC4.hs
506505 sed -i -e 's|"yices-smt2"|"${pkgs.yices}/bin/yices-smt2"|' Data/SBV/Provers/Yices.hs
507506 sed -i -e 's|"z3"|"${pkgs.z3}/bin/z3"|' Data/SBV/Provers/Z3.hs
508−
507+ '' + (if pkgs.stdenv.isAarch64 then ''
508+ sed -i -e 's|\[abc, boolector, cvc4, mathSAT, yices, z3, dReal\]|[abc, boolector, yices, z3]|' SBVTestSuite/SBVConnectionTest.hs
509+ ''
510+ else ''
511+ sed -i -e 's|"cvc4"|"${pkgs.cvc4}/bin/cvc4"|' Data/SBV/Provers/CVC4.hs
509512 sed -i -e 's|\[abc, boolector, cvc4, mathSAT, yices, z3, dReal\]|[abc, boolector, cvc4, yices, z3]|' SBVTestSuite/SBVConnectionTest.hs
510− '';
513+ '');
511514 }) super.sbv;
512515
513516 # The test-suite requires a running PostgreSQL server.