blob: 52a3129fec0aef268d3dc1ee616169f609989bd4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
{stdenv, fetchurl, polyml, graphviz, experimentalKernel ? true}:
let
pname = "hol4";
version = "k.8";
holsubdir = "hol-kananaskis-8";
kernelFlag = if experimentalKernel then "-expk" else "-stdknl";
in
stdenv.mkDerivation {
name = "${pname}-${version}";
src = fetchurl {
url = mirror://sourceforge/hol/hol/kananaskis-8/kananaskis-8.tar.gz;
sha256 = "5ce4c1e37301dbc38772694e98f1c7eabf69255908de204b280d8b2b1709e9d0";
};
buildInputs = [polyml graphviz];
buildCommand = ''
mkdir -p "$out/src"
cd "$out/src"
tar -xzf "$src"
cd ${holsubdir}
substituteInPlace tools/Holmake/Holmake_types.sml \
--replace "\"/bin/mv\"" "\"mv\"" \
--replace "\"/bin/cp\"" "\"cp\""
substituteInPlace tools/buildutils.sml --replace "\"/usr/bin/dot\"" "\"dot\""
#sed -ie "/compute/,999 d" tools/build-sequence # for testing
poly < tools/smart-configure.sml
bin/build ${kernelFlag} -symlink
mkdir -p "$out/bin"
ln -st $out/bin $out/src/${holsubdir}/bin/*
# ln -s $out/src/hol4.${version}/bin $out/bin
'';
meta = {
description = "Interactive theorem prover based on Higher-Order Logic";
longDescription = ''
HOL4 is the latest version of the HOL interactive proof
assistant for higher order logic: a programming environment in
which theorems can be proved and proof tools
implemented. Built-in decision procedures and theorem provers
can automatically establish many simple theorems (users may have
to prove the hard theorems themselves!) An oracle mechanism
gives access to external programs such as SMT and BDD
engines. HOL4 is particularly suitable as a platform for
implementing combinations of deduction, execution and property
checking.
'';
homepage = "http://hol.sourceforge.net/";
license = "BSD";
};
}
|