2014-04-27 20:25:19 +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"
|
2014-04-27 20:25:19 +02:00
|
|
|
exec ${ocaml}/bin/ocaml -I \`${camlp5}/bin/camlp5 -where\` -init make.ml
|
2011-05-21 13:18:35 +02:00
|
|
|
'';
|
2011-12-16 08:44:29 +01:00
|
|
|
in
|
2014-04-27 20:25:19 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "hol_light-${version}";
|
|
|
|
version = "189";
|
2011-12-16 08:44:29 +01:00
|
|
|
|
|
|
|
src = fetchsvn {
|
|
|
|
url = http://hol-light.googlecode.com/svn/trunk;
|
2014-04-27 20:25:19 +02:00
|
|
|
rev = version;
|
|
|
|
sha256 = "1v10l64rs7da2kag3wlb651i09pn83icy9n5z84j8h1iwlxzajdh";
|
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
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p "$out/lib/hol_light" "$out/bin"
|
2011-05-21 13:18:35 +02:00
|
|
|
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 = {
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Interactive theorem prover based on Higher-Order Logic";
|
2014-04-27 20:25:19 +02:00
|
|
|
homepage = http://www.cl.cam.ac.uk/~jrh13/hol-light/;
|
|
|
|
license = stdenv.lib.licenses.bsd2;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
2010-02-15 12:00:02 +01:00
|
|
|
};
|
|
|
|
}
|