2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, ocaml, eprover, zlib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "iprover";
|
|
|
|
version = "3.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.cs.man.ac.uk/~korovink/iprover/iprover-v${version}.tar.gz";
|
|
|
|
sha256 = "0lik8p7ayhjwpkln1iwf0ri84ramhch74j5nj6z7ph6wfi92pgg8";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml eprover zlib ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
preConfigure = "patchShebangs .";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|