2017-07-17 22:45:27 +01:00
|
|
|
{ stdenv, fetchurl, ocaml, eprover, zlib }:
|
2010-12-04 18:39:44 +00:00
|
|
|
|
2015-07-16 02:23:36 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "iprover-${version}";
|
2018-11-21 11:15:48 +00:00
|
|
|
version = "2018_Jul_24_11h";
|
2015-07-16 02:23:36 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-11-21 11:15:48 +00:00
|
|
|
url = "http://www.cs.man.ac.uk/~korovink/iprover/iprover_${version}.tar.gz";
|
|
|
|
sha256 = "1iqim11flzm56aaysasl5whajcv1gq31hkidaqfr8ww7kwl1h06p";
|
2010-12-04 18:39:44 +00:00
|
|
|
};
|
|
|
|
|
2017-07-17 22:45:27 +01:00
|
|
|
buildInputs = [ ocaml eprover zlib ];
|
2010-12-04 18:39:44 +00:00
|
|
|
|
2015-07-16 02:23:36 +01:00
|
|
|
preConfigure = ''patchShebangs .'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p "$out/bin"
|
2010-12-04 18:39:44 +00:00
|
|
|
cp iproveropt "$out/bin"
|
|
|
|
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p "$out/share/${name}"
|
2010-12-04 18:39:44 +00:00
|
|
|
cp *.p "$out/share/${name}"
|
2019-01-15 22:41:31 +00:00
|
|
|
echo -e "#! ${stdenv.shell}\\n$out/bin/iproveropt --clausifier \"${eprover}/bin/eprover\" --clausifier_options \" --tstp-format --silent --cnf \" \"\$@\"" > "$out"/bin/iprover
|
2010-12-04 18:39:44 +00:00
|
|
|
chmod a+x "$out"/bin/iprover
|
2015-07-16 02:23:36 +01:00
|
|
|
'';
|
2014-07-28 10:43:20 +01:00
|
|
|
|
2015-07-16 02:23:36 +01:00
|
|
|
meta = with stdenv.lib; {
|
2010-12-04 18:39:44 +00:00
|
|
|
description = "An automated first-order logic theorem prover";
|
2017-07-17 22:45:27 +01:00
|
|
|
homepage = http://www.cs.man.ac.uk/~korovink/iprover/;
|
|
|
|
maintainers = with maintainers; [ raskin gebner ];
|
2015-07-16 02:23:36 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3;
|
2010-12-04 18:39:44 +00:00
|
|
|
};
|
2015-07-16 02:23:36 +01:00
|
|
|
}
|