Merge pull request #46956 from Taneb/sbv-fix-z3
haskellPackages.sbv: fix location of z3 executable
commitb2042983ef013465473d30c50697fe628fd80283
authorBas van Dijk <v.dijk.bas@gmail.com>
dateThu 20 Sep 2018, 14:03 (8 years ago)
parent0565996c8598da
pkgs/development/haskell-modules/configuration-nix.nix+6
@@ -511,4 +511,10 @@ self: super: builtins.intersectAttrs super {
511511 # Doctests hang only when compiling with nix.
512512 # https://github.com/cdepillabout/termonad/issues/15
513513 termonad = dontCheck super.termonad;
514+
515+ # Expects z3 to be on path so we replace it with a hard
516+ sbv = overrideCabal super.sbv (drv: {
517+ postPatch = ''
518+ sed -i -e 's|"z3"|"${pkgs.z3}/bin/z3"|' Data/SBV/Provers/Z3.hs'';
519+ });
514520}