2015-11-03 14:24:32 +00:00
|
|
|
{ stdenv, fetchFromGitHub, writeScript, ocaml, 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"
|
2014-04-27 18:25:19 +00:00
|
|
|
exec ${ocaml}/bin/ocaml -I \`${camlp5}/bin/camlp5 -where\` -init make.ml
|
2011-05-21 11:18:35 +00:00
|
|
|
'';
|
2011-12-16 07:44:29 +00:00
|
|
|
in
|
2014-09-16 14:55:56 +00:00
|
|
|
|
2015-11-03 14:24:32 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "hol_light-2015-11-02";
|
2011-12-16 07:44:29 +00:00
|
|
|
|
2015-11-03 14:24:32 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jrh13";
|
|
|
|
repo = "hol-light";
|
|
|
|
rev = "10265313397476ddff4ce13e7bbb588025e7272c";
|
|
|
|
sha256 = "17b6a7vk9fhppl0h366y7pw6a9sknq1a8gxqg67dzqpb47vda1n0";
|
2011-12-16 07:44:29 +00:00
|
|
|
};
|
|
|
|
|
2015-09-13 16:01:04 +00:00
|
|
|
buildInputs = [ ocaml camlp5 ];
|
2010-09-15 21:41:18 +00:00
|
|
|
|
2015-09-23 17:04:51 +00:00
|
|
|
patches = [ ./Makefile.patch ];
|
|
|
|
|
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
|
|
|
|
2014-09-16 14:55:56 +00:00
|
|
|
meta = with stdenv.lib; {
|
2013-10-06 09:49:53 +00:00
|
|
|
description = "Interactive theorem prover based on Higher-Order Logic";
|
2014-04-27 18:25:19 +00:00
|
|
|
homepage = http://www.cl.cam.ac.uk/~jrh13/hol-light/;
|
2014-09-16 14:55:56 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.unix;
|
2014-09-30 08:41:02 +00:00
|
|
|
maintainers = with maintainers; [ thoughtpolice z77z vbgl ];
|
2010-02-15 11:00:02 +00:00
|
|
|
};
|
|
|
|
}
|