forked from mirrors/nixpkgs
d113661156
- put `findlib` in `buildInputs` of `mkCoqDerivation` to make sure `coq` packages find their ocaml plugin dependencies, - use `propagatedBuildInputs` to make sure ocaml plugin dependencies are in path, - updated `coqPackage.heq` (broken url), - fixed use of `DESTDIR` and `COQMF_COQLIB` in mkCoqDerivation, - adding `COQCORELIB` environement variable to put ocaml plugin files in the right place, - make `metaFetch` available from `coqPackages`
48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{ callPackage, fetchurl, fetchpatch, lib, stdenv
|
|
, ocamlPackages, coqPackages, rubber, hevea, emacs }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "why3";
|
|
version = "1.5.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://why3.gitlabpages.inria.fr/releases/${pname}-${version}.tar.gz";
|
|
sha256 = "sha256:0qjh49pyqmg3xi09fn4lyzz23i6h18y9sgc8ayscvx3bwr3vcqhr";
|
|
};
|
|
|
|
buildInputs = with ocamlPackages; [
|
|
ocaml findlib ocamlgraph zarith menhir
|
|
# 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 = "http://why3.lri.fr/";
|
|
license = licenses.lgpl21;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ thoughtpolice vbgl ];
|
|
};
|
|
}
|