2021-01-11 07:54:33 +00:00
|
|
|
{ callPackage, fetchurl, fetchpatch, lib, stdenv
|
2019-06-19 03:01:38 +01:00
|
|
|
, ocamlPackages, coqPackages, rubber, hevea, emacs }:
|
2014-05-01 08:28:52 +01:00
|
|
|
|
2021-08-16 21:50:19 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "why3";
|
2022-04-30 14:53:28 +01:00
|
|
|
version = "1.5.0";
|
2014-05-01 08:28:52 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-02-18 20:44:12 +00:00
|
|
|
url = "https://why3.gitlabpages.inria.fr/releases/${pname}-${version}.tar.gz";
|
2022-04-30 14:53:28 +01:00
|
|
|
sha256 = "sha256:0qjh49pyqmg3xi09fn4lyzz23i6h18y9sgc8ayscvx3bwr3vcqhr";
|
2014-05-01 08:28:52 +01:00
|
|
|
};
|
|
|
|
|
2019-06-19 03:01:38 +01:00
|
|
|
buildInputs = with ocamlPackages; [
|
2022-02-18 20:44:12 +00:00
|
|
|
ocaml findlib ocamlgraph zarith menhir
|
2019-06-19 03:01:38 +01:00
|
|
|
# Emacs compilation of why3.el
|
|
|
|
emacs
|
|
|
|
# Documentation
|
|
|
|
rubber hevea
|
|
|
|
# GUI
|
2021-06-26 21:42:23 +01:00
|
|
|
lablgtk3-sourceview3
|
2019-06-19 03:01:38 +01:00
|
|
|
# WebIDE
|
|
|
|
js_of_ocaml js_of_ocaml-ppx
|
2021-06-25 07:53:41 +01:00
|
|
|
# S-expression output for why3pp
|
2021-02-19 18:34:30 +00:00
|
|
|
ppx_deriving ppx_sexp_conv ]
|
|
|
|
++
|
2019-06-19 03:01:38 +01:00
|
|
|
# Coq Support
|
2021-02-19 18:34:30 +00:00
|
|
|
(with coqPackages; [ coq flocq ])
|
|
|
|
;
|
2019-06-19 03:01:38 +01:00
|
|
|
|
2022-02-18 20:44:12 +00:00
|
|
|
propagatedBuildInputs = with ocamlPackages; [ camlzip menhirLib num re sexplib ];
|
2019-06-19 03:01:38 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
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 {};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-10-11 23:27:57 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|