3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #18497 from aneeshusa/add-z3-dependency-for-cryptol

cryptol: Make Z3 available for REPL users
This commit is contained in:
Peter Simons 2016-09-11 01:15:58 +02:00 committed by GitHub
commit 3d479813f5

View file

@ -4443,7 +4443,15 @@ in
coq = coq_8_5;
});
cryptol = haskellPackages.cryptol;
# Users installing via `nix-env` will likely be using the REPL,
# which has a hard dependency on Z3, so make sure it is available.
cryptol = haskellPackages.cryptol.overrideDerivation (oldAttrs: {
buildInputs = (oldAttrs.buildInputs or []) ++ [ makeWrapper ];
installPhase = (oldAttrs.installPhase or "") + ''
wrapProgram $out/bin/cryptol \
--prefix 'PATH' ':' "${lib.getBin z3}/bin"
'';
});
devpi-client = callPackage ../development/tools/devpi-client {};