blob: 85fe52239ad9826b0038bb429731ddd675db2441 (
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
|
{ stdenv, fetchurl, ocaml, eprover, zlib }:
stdenv.mkDerivation rec {
pname = "iprover";
version = "2018_Jul_24_11h";
src = fetchurl {
url = "http://www.cs.man.ac.uk/~korovink/iprover/iprover_${version}.tar.gz";
sha256 = "1iqim11flzm56aaysasl5whajcv1gq31hkidaqfr8ww7kwl1h06p";
};
buildInputs = [ ocaml eprover zlib ];
preConfigure = ''patchShebangs .'';
installPhase = ''
mkdir -p "$out/bin"
cp iproveropt "$out/bin"
mkdir -p "$out/share/${pname}-${version}"
cp *.p "$out/share/${pname}-${version}"
echo -e "#! ${stdenv.shell}\\n$out/bin/iproveropt --clausifier \"${eprover}/bin/eprover\" --clausifier_options \" --tstp-format --silent --cnf \" \"\$@\"" > "$out"/bin/iprover
chmod a+x "$out"/bin/iprover
'';
meta = with stdenv.lib; {
description = "An automated first-order logic theorem prover";
homepage = http://www.cs.man.ac.uk/~korovink/iprover/;
maintainers = with maintainers; [ raskin gebner ];
platforms = platforms.linux;
license = licenses.gpl3;
};
}
|