2021-01-15 22:18:51 +00:00
|
|
|
{ callPackage, fetchurl, fetchpatch, lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, ocamlPackages, coqPackages, rubber, hevea, emacs }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "why3";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "1.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-28 23:13:55 +00:00
|
|
|
url = "https://gforge.inria.fr/frs/download.php/file/38425/why3-1.4.0.tar.gz";
|
|
|
|
sha256 = "0lw0cpx347zz9vvwqibmbxgs80fsd16scgk3isscvwxnajpc3rv8";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = with ocamlPackages; [
|
2021-06-06 07:54:09 +00:00
|
|
|
ocaml findlib ocamlgraph zarith menhir menhirLib
|
2020-04-24 23:36:52 +00:00
|
|
|
# Emacs compilation of why3.el
|
|
|
|
emacs
|
|
|
|
# Documentation
|
|
|
|
rubber hevea
|
|
|
|
# GUI
|
2021-06-28 23:13:55 +00:00
|
|
|
lablgtk3-sourceview3
|
2020-04-24 23:36:52 +00:00
|
|
|
# WebIDE
|
|
|
|
js_of_ocaml js_of_ocaml-ppx
|
2021-06-28 23:13:55 +00:00
|
|
|
# S-expression output for why3pp
|
|
|
|
ppx_deriving ppx_sexp_conv
|
2020-04-24 23:36:52 +00:00
|
|
|
# Coq Support
|
|
|
|
coqPackages.coq coqPackages.flocq ocamlPackages.camlp5
|
|
|
|
];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
propagatedBuildInputs = with ocamlPackages; [ camlzip num re sexplib ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
configureFlags = [ "--enable-verbose-make" ];
|
|
|
|
|
|
|
|
installTargets = [ "install" "install-lib" ];
|
|
|
|
|
|
|
|
passthru.withProvers = callPackage ./with-provers.nix {};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A platform for deductive program verification";
|
|
|
|
homepage = "http://why3.lri.fr/";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice vbgl ];
|
|
|
|
};
|
|
|
|
}
|