haskellPackages.sbv: fix location of z3 executable
A lot of the functionality of the z3 library depends on it being able to
find the z3 executable on $PATH. Hard-coding it here means it will never
be unable to find it and z3 doesn't need to pollute $PATH.
commitc8598daad4dee3d15e312608b56ce50532830c90
authorNathan van Doorn <nathan@myrtlesoftware.com>
dateThu 20 Sep 2018, 11:45 (8 years ago)
parent0e1f3ef
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}