1 {stdenv, fetchsvn, ocaml, camlp5_transitional}:
3 stdenv.mkDerivation rec {
4 name = "hol_light-${version}";
5 version = "20100820svn57";
8 camlp5 = camlp5_transitional;
11 url = http://hol-light.googlecode.com/svn/trunk;
13 sha256 = "d1372744abca6c9978673850977d3e1577fd8cfd8298826eb713b3681c10cccd";
16 buildInputs = [ ocaml camlp5 ];
19 export HOL_DIR="$out/src/hol_light"
20 ensureDir `dirname $HOL_DIR` "$out/bin"
21 cp -a "${src}" "$HOL_DIR"
25 substituteInPlace hol.ml --replace \
26 "(try Sys.getenv \"HOLLIGHT_DIR\" with Not_found -> Sys.getcwd())" \
29 substituteInPlace Makefile --replace \
31 "${camlp5}/lib/ocaml/camlp5"
33 substitute ${./start_hol_light} "$out/bin/start_hol_light" \
34 --subst-var-by OCAML "${ocaml}" \
35 --subst-var-by CAMLP5 "${camlp5_transitional}" \
37 chmod +x "$out/bin/start_hol_light"
43 description = "An interactive theorem prover based on Higher-Order Logic.";
45 HOL Light is a computer program to help users prove interesting mathematical
46 theorems completely formally in Higher-Order Logic. It sets a very exacting
47 standard of correctness, but provides a number of automated tools and
48 pre-proved mathematical theorems (e.g., about arithmetic, basic set theory and
49 real analysis) to save the user work. It is also fully programmable, so users
50 can extend it with new theorems and inference rules without compromising its
53 homepage = http://www.cl.cam.ac.uk/~jrh13/hol-light/;
55 ocamlVersions = [ "3.10.0" "3.11.1" ];