2020-03-06 06:42:04 +00:00
|
|
|
{ callPackage, fetchurl, fetchpatch, stdenv
|
2019-06-19 03:01:38 +01:00
|
|
|
, ocamlPackages, coqPackages, rubber, hevea, emacs }:
|
2014-05-01 08:28:52 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "why3";
|
2020-09-22 06:18:30 +01:00
|
|
|
version = "1.3.3";
|
2014-05-01 08:28:52 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-09-22 06:18:30 +01:00
|
|
|
url = "https://gforge.inria.fr/frs/download.php/file/38367/why3-1.3.3.tar.gz";
|
|
|
|
sha256 = "1n0a2nn1gnk0zg339lh698g4wpk7m8m1vyi2yvifd5adqvk4milw";
|
2014-05-01 08:28:52 +01:00
|
|
|
};
|
|
|
|
|
2019-06-19 03:01:38 +01:00
|
|
|
buildInputs = with ocamlPackages; [
|
|
|
|
ocaml findlib ocamlgraph zarith menhir
|
|
|
|
# Compressed Sessions
|
|
|
|
# Emacs compilation of why3.el
|
|
|
|
emacs
|
|
|
|
# Documentation
|
|
|
|
rubber hevea
|
|
|
|
# GUI
|
|
|
|
lablgtk
|
|
|
|
# WebIDE
|
|
|
|
js_of_ocaml js_of_ocaml-ppx
|
|
|
|
# Coq Support
|
|
|
|
coqPackages.coq coqPackages.flocq ocamlPackages.camlp5
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with ocamlPackages; [ camlzip num ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-06-21 06:33:23 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile.in --replace js_of_ocaml.ppx js_of_ocaml-ppx
|
|
|
|
'';
|
|
|
|
|
2019-06-19 03:01:38 +01:00
|
|
|
configureFlags = [ "--enable-verbose-make" ];
|
2016-03-04 06:29:28 +00:00
|
|
|
|
|
|
|
installTargets = [ "install" "install-lib" ];
|
2014-05-01 08:28:52 +01:00
|
|
|
|
2019-06-19 03:01:38 +01:00
|
|
|
passthru.withProvers = callPackage ./with-provers.nix {};
|
|
|
|
|
2014-10-11 23:27:57 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A platform for deductive program verification";
|
2014-05-01 08:28:52 +01:00
|
|
|
homepage = "http://why3.lri.fr/";
|
2014-10-11 23:27:57 +01:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice vbgl ];
|
2014-05-01 08:28:52 +01:00
|
|
|
};
|
|
|
|
}
|