2015-07-16 01:23:36 +00:00
|
|
|
{ stdenv, fetchurl, ocaml, eprover }:
|
2010-12-04 18:39:44 +00:00
|
|
|
|
2015-07-16 01:23:36 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "iprover-${version}";
|
|
|
|
version = "0.8.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://iprover.googlecode.com/files/iprover_v${version}.tar.gz";
|
|
|
|
sha256 = "15qn523w4l296np5rnkwi50a5x2xqz0kaza7bsh9bkazph7jma7w";
|
2010-12-04 18:39:44 +00:00
|
|
|
};
|
|
|
|
|
2015-07-16 01:23:36 +00:00
|
|
|
buildInputs = [ ocaml eprover ];
|
2010-12-04 18:39:44 +00:00
|
|
|
|
2015-07-16 01:23:36 +00: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}"
|
|
|
|
echo -e "#! /bin/sh\\n$out/bin/iproveropt --clausifier \"${eprover}/bin/eprover\" --clausifier_options \" --tstp-format --silent --cnf \" \"\$@\"" > "$out"/bin/iprover
|
|
|
|
chmod a+x "$out"/bin/iprover
|
2015-07-16 01:23:36 +00:00
|
|
|
'';
|
2014-07-28 09:43:20 +00:00
|
|
|
|
2015-07-16 01:23:36 +00:00
|
|
|
meta = with stdenv.lib; {
|
2010-12-04 18:39:44 +00:00
|
|
|
description = "An automated first-order logic theorem prover";
|
2015-07-16 01:23:36 +00:00
|
|
|
maintainers = with maintainers;
|
2010-12-04 18:39:44 +00:00
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
2015-07-16 01:23:36 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
downloadPage = "http://code.google.com/p/iprover/downloads/list";
|
2010-12-04 18:39:44 +00:00
|
|
|
};
|
2015-07-16 01:23:36 +00:00
|
|
|
}
|