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