2011-05-21 11:18:35 +00:00
|
|
|
{stdenv, fetchsvn, writeScript, ocaml, findlib, camlp5}:
|
2010-02-15 11:00:02 +00:00
|
|
|
|
2011-12-16 07:44:29 +00:00
|
|
|
let
|
2011-05-21 11:18:35 +00:00
|
|
|
start_script = ''
|
|
|
|
#!/bin/sh
|
|
|
|
cd "$out/lib/hol_light"
|
2013-03-25 09:56:57 +00:00
|
|
|
exec ${ocaml}/bin/ocaml -I "camlp5 -where" -init make.ml
|
2011-05-21 11:18:35 +00:00
|
|
|
'';
|
2011-12-16 07:44:29 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-01-14 14:20:49 +00:00
|
|
|
name = "hol_light-20140112";
|
2011-12-16 07:44:29 +00:00
|
|
|
src = fetchsvn {
|
|
|
|
url = http://hol-light.googlecode.com/svn/trunk;
|
2014-01-14 14:20:49 +00:00
|
|
|
rev = "179";
|
|
|
|
sha256 = "1j402s7142fj09bjijrkargwx03fvbdwmn0hgzzmi6s4p1y7gww0";
|
2011-12-16 07:44:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib camlp5 ];
|
2010-09-15 21:41:18 +00:00
|
|
|
|
2011-05-21 11:18:35 +00:00
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p "$out/lib/hol_light" "$out/bin"
|
2011-05-21 11:18:35 +00:00
|
|
|
cp -a . $out/lib/hol_light
|
|
|
|
echo "${start_script}" > "$out/bin/hol_light"
|
|
|
|
chmod a+x "$out/bin/hol_light"
|
2010-02-15 11:00:02 +00:00
|
|
|
'';
|
2011-05-21 11:18:35 +00:00
|
|
|
|
2010-02-15 11:00:02 +00:00
|
|
|
meta = {
|
2013-10-06 09:49:53 +00:00
|
|
|
description = "Interactive theorem prover based on Higher-Order Logic";
|
2010-02-15 11:00:02 +00:00
|
|
|
longDescription = ''
|
2013-10-06 09:49:53 +00:00
|
|
|
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-02-15 11:00:02 +00:00
|
|
|
'';
|
2010-09-08 13:07:45 +00:00
|
|
|
homepage = http://www.cl.cam.ac.uk/~jrh13/hol-light/;
|
2013-03-25 09:56:57 +00:00
|
|
|
license = stdenv.lib.licenses.bsd2;
|
2010-02-15 11:00:02 +00:00
|
|
|
};
|
|
|
|
}
|