depot/third_party/nixpkgs/pkgs/applications/science/logic/why3/default.nix
Default email 4bac34ead1 Project import generated by Copybara.
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
2023-02-09 12:40:11 +01:00

55 lines
1.3 KiB
Nix

{ callPackage, fetchurl, lib, stdenv
, ocamlPackages, coqPackages, rubber, hevea, emacs }:
stdenv.mkDerivation rec {
pname = "why3";
version = "1.5.1";
src = fetchurl {
url = "https://why3.gitlabpages.inria.fr/releases/${pname}-${version}.tar.gz";
sha256 = "sha256-vNR7WeiSvg+763GcovoZBFDfncekJMeqNegP4fVw06I=";
};
strictDeps = true;
nativeBuildInputs = with ocamlPackages; [
ocaml findlib menhir
# Coq Support
coqPackages.coq
];
buildInputs = with ocamlPackages; [
ocamlgraph zarith
# Emacs compilation of why3.el
emacs
# Documentation
rubber hevea
# GUI
lablgtk3-sourceview3
# WebIDE
js_of_ocaml js_of_ocaml-ppx
# S-expression output for why3pp
ppx_deriving ppx_sexp_conv ]
++
# Coq Support
(with coqPackages; [ coq flocq ])
;
propagatedBuildInputs = with ocamlPackages; [ camlzip menhirLib num re sexplib ];
enableParallelBuilding = true;
configureFlags = [ "--enable-verbose-make" ];
installTargets = [ "install" "install-lib" ];
passthru.withProvers = callPackage ./with-provers.nix {};
meta = with lib; {
description = "A platform for deductive program verification";
homepage = "https://why3.lri.fr/";
license = licenses.lgpl21;
platforms = platforms.unix;
maintainers = with maintainers; [ thoughtpolice vbgl ];
};
}