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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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";
2022-02-18 20:44:12 +00:00
version = "1.4.1";
src = fetchurl {
2022-02-18 20:44:12 +00:00
url = "https://why3.gitlabpages.inria.fr/releases/${pname}-${version}.tar.gz";
sha256 = "sha256:1rqyypzlvagrn43ykl0c5wxyvnry5fl1ykn3xcvlzgghk96yq3jq";
};
2019-06-19 02:01:38 +00:00
buildInputs = with ocamlPackages; [
2022-02-18 20:44:12 +00:00
ocaml findlib ocamlgraph zarith menhir
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
];
2022-02-18 20:44:12 +00:00
propagatedBuildInputs = with ocamlPackages; [ camlzip menhirLib 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 ];
};
}