2011-05-21 13:18:35 +02:00
|
|
|
{stdenv, fetchsvn, writeScript, ocaml, findlib, camlp5}:
|
2010-02-15 12:00:02 +01:00
|
|
|
|
2011-12-16 08:44:29 +01:00
|
|
|
let
|
2011-05-21 13:18:35 +02:00
|
|
|
start_script = ''
|
|
|
|
#!/bin/sh
|
|
|
|
cd "$out/lib/hol_light"
|
|
|
|
exec ${ocaml}/bin/ocaml -I "$(ocamlfind query camlp5)" -init make.ml
|
|
|
|
'';
|
2011-12-16 08:44:29 +01:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2012-01-10 17:12:11 +01:00
|
|
|
name = "hol_light-20120109";
|
2011-12-16 08:44:29 +01:00
|
|
|
src = fetchsvn {
|
|
|
|
url = http://hol-light.googlecode.com/svn/trunk;
|
2012-01-10 17:12:11 +01:00
|
|
|
rev = "118";
|
|
|
|
sha256 = "97e72dad731338328c031421512c26d440a989ea083f3ae34820eb8413aff495";
|
2011-12-16 08:44:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib camlp5 ];
|
2010-09-15 23:41:18 +02:00
|
|
|
|
2011-05-21 13:18:35 +02:00
|
|
|
buildPhase = ''
|
|
|
|
make pa_j.ml
|
|
|
|
ocamlc -c \
|
|
|
|
-pp "camlp5r pa_lexer.cmo pa_extend.cmo q_MLast.cmo" \
|
|
|
|
-I "$(ocamlfind query camlp5)" \
|
|
|
|
pa_j.ml
|
|
|
|
'';
|
2010-09-15 23:41:18 +02:00
|
|
|
|
2011-05-21 13:18:35 +02:00
|
|
|
installPhase = ''
|
|
|
|
ensureDir "$out/lib/hol_light" "$out/bin"
|
|
|
|
cp -a . $out/lib/hol_light
|
|
|
|
echo "${start_script}" > "$out/bin/hol_light"
|
|
|
|
chmod a+x "$out/bin/hol_light"
|
2010-02-15 12:00:02 +01:00
|
|
|
'';
|
2011-05-21 13:18:35 +02:00
|
|
|
|
2010-02-15 12:00:02 +01:00
|
|
|
meta = {
|
|
|
|
description = "An interactive theorem prover based on Higher-Order Logic.";
|
|
|
|
longDescription = ''
|
|
|
|
HOL Light is a computer program to help users prove interesting mathematical
|
|
|
|
theorems completely formally in Higher-Order Logic. It sets a very exacting
|
|
|
|
standard of correctness, but provides a number of automated tools and
|
|
|
|
pre-proved mathematical theorems (e.g., about arithmetic, basic set theory and
|
|
|
|
real analysis) to save the user work. It is also fully programmable, so users
|
|
|
|
can extend it with new theorems and inference rules without compromising its
|
|
|
|
soundness.
|
|
|
|
'';
|
2010-09-08 15:07:45 +02:00
|
|
|
homepage = http://www.cl.cam.ac.uk/~jrh13/hol-light/;
|
2010-02-15 12:00:02 +01:00
|
|
|
license = "BSD";
|
|
|
|
};
|
|
|
|
}
|