2017-07-17 14:45:27 -07:00
|
|
|
{ stdenv, fetchurl, ocaml, eprover, zlib }:
|
2010-12-04 10:39:44 -08:00
|
|
|
|
2015-07-15 18:23:36 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "iprover";
|
2020-02-08 23:45:48 -08:00
|
|
|
version = "3.1";
|
2015-07-15 18:23:36 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-02-08 23:45:48 -08:00
|
|
|
url = "http://www.cs.man.ac.uk/~korovink/iprover/iprover-v${version}.tar.gz";
|
|
|
|
sha256 = "0lik8p7ayhjwpkln1iwf0ri84ramhch74j5nj6z7ph6wfi92pgg8";
|
2010-12-04 10:39:44 -08:00
|
|
|
};
|
|
|
|
|
2017-07-17 14:45:27 -07:00
|
|
|
buildInputs = [ ocaml eprover zlib ];
|
2010-12-04 10:39:44 -08:00
|
|
|
|
2015-07-15 18:23:36 -07:00
|
|
|
preConfigure = ''patchShebangs .'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 12:16:00 -08:00
|
|
|
mkdir -p "$out/bin"
|
2010-12-04 10:39:44 -08:00
|
|
|
cp iproveropt "$out/bin"
|
|
|
|
|
2019-08-15 05:41:18 -07:00
|
|
|
mkdir -p "$out/share/${pname}-${version}"
|
|
|
|
cp *.p "$out/share/${pname}-${version}"
|
2019-01-15 14:41:31 -08: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 10:39:44 -08:00
|
|
|
chmod a+x "$out"/bin/iprover
|
2015-07-15 18:23:36 -07:00
|
|
|
'';
|
2014-07-28 02:43:20 -07:00
|
|
|
|
2015-07-15 18:23:36 -07:00
|
|
|
meta = with stdenv.lib; {
|
2010-12-04 10:39:44 -08:00
|
|
|
description = "An automated first-order logic theorem prover";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://www.cs.man.ac.uk/~korovink/iprover/";
|
2017-07-17 14:45:27 -07:00
|
|
|
maintainers = with maintainers; [ raskin gebner ];
|
2015-07-15 18:23:36 -07:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3;
|
2010-12-04 10:39:44 -08:00
|
|
|
};
|
2015-07-15 18:23:36 -07:00
|
|
|
}
|