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:
commit
3d479813f5
|
@ -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 {};
|
||||
|
||||
|
|
Loading…
Reference in a new issue