Skip to content

Commit

Permalink
haskellPackages.sbv: fix location of z3 executable
Browse files Browse the repository at this point in the history
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.

(cherry picked from commit c8598da)

Signed-off-by: Austin Seipp <aseipp@pobox.com>
  • Loading branch information
Nathan van Doorn authored and thoughtpolice committed Sep 20, 2018
1 parent 6999bcc commit d16a7ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/development/haskell-modules/configuration-nix.nix
Expand Up @@ -500,4 +500,10 @@ self: super: builtins.intersectAttrs super {
LDAP = dontCheck (overrideCabal super.LDAP (drv: {
librarySystemDepends = drv.librarySystemDepends or [] ++ [ pkgs.cyrus_sasl.dev ];
}));

# Expects z3 to be on path so we replace it with a hard
sbv = overrideCabal super.sbv (drv: {
postPatch = ''
sed -i -e 's|"z3"|"${pkgs.z3}/bin/z3"|' Data/SBV/Provers/Z3.hs'';
});
}

0 comments on commit d16a7ab

Please sign in to comment.