summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-nix.nix
diff options
context:
space:
mode:
authorArtur Cygan <arczicygan@gmail.com>2021-12-15 15:56:29 +0100
committerArtur Cygan <arczicygan@gmail.com>2021-12-15 15:56:29 +0100
commitcd600120e3ddcd45435d620b2075025d88824607 (patch)
tree5f458352ff3eb825a664cda922287945305c5acc /pkgs/development/haskell-modules/configuration-nix.nix
parent6d1dfa481198e613b3a230a9c6bbc574e7f56575 (diff)
downloadnixpkgs-cd600120e3ddcd45435d620b2075025d88824607.tar
nixpkgs-cd600120e3ddcd45435d620b2075025d88824607.tar.gz
nixpkgs-cd600120e3ddcd45435d620b2075025d88824607.tar.bz2
nixpkgs-cd600120e3ddcd45435d620b2075025d88824607.tar.lz
nixpkgs-cd600120e3ddcd45435d620b2075025d88824607.tar.xz
nixpkgs-cd600120e3ddcd45435d620b2075025d88824607.tar.zst
nixpkgs-cd600120e3ddcd45435d620b2075025d88824607.zip
haskellPackages.sbv: fix build on aarch64
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-nix.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-nix.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix
index df3c42b5de3..19ceea97874 100644
--- a/pkgs/development/haskell-modules/configuration-nix.nix
+++ b/pkgs/development/haskell-modules/configuration-nix.nix
@@ -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.