nixpkgs/pkgs/applications/science/logic/why3/default.nix

47 lines
1.2 KiB
Nix
Raw Normal View History

{ callPackage, fetchurl, fetchpatch, lib, stdenv
2019-06-19 02:01:38 +00:00
, ocamlPackages, coqPackages, rubber, hevea, emacs }:
2021-08-16 20:50:19 +00:00
stdenv.mkDerivation rec {
pname = "why3";
version = "1.4.0";
src = fetchurl {
2021-08-16 20:50:19 +00:00
url = "https://gforge.inria.fr/frs/download.php/file/38425/why3-${version}.tar.gz";
sha256 = "0lw0cpx347zz9vvwqibmbxgs80fsd16scgk3isscvwxnajpc3rv8";
};
2019-06-19 02:01:38 +00:00
buildInputs = with ocamlPackages; [
ocaml findlib ocamlgraph zarith menhir menhirLib
2019-06-19 02:01:38 +00:00
# Emacs compilation of why3.el
emacs
# Documentation
rubber hevea
# GUI
2021-06-26 20:42:23 +00:00
lablgtk3-sourceview3
2019-06-19 02:01:38 +00:00
# WebIDE
js_of_ocaml js_of_ocaml-ppx
# S-expression output for why3pp
ppx_deriving ppx_sexp_conv
2019-06-19 02:01:38 +00:00
# Coq Support
coqPackages.coq coqPackages.flocq
2019-06-19 02:01:38 +00:00
];
propagatedBuildInputs = with ocamlPackages; [ camlzip num re sexplib ];
2019-06-19 02:01:38 +00:00
enableParallelBuilding = true;
configureFlags = [ "--enable-verbose-make" ];
installTargets = [ "install" "install-lib" ];
2019-06-19 02:01:38 +00:00
passthru.withProvers = callPackage ./with-provers.nix {};
meta = with lib; {
2014-10-11 22:27:57 +00:00
description = "A platform for deductive program verification";
homepage = "http://why3.lri.fr/";
2014-10-11 22:27:57 +00:00
license = licenses.lgpl21;
platforms = platforms.unix;
maintainers = with maintainers; [ thoughtpolice vbgl ];
};
}