2015-06-25 23:21:25 +02:00
|
|
|
{ stdenv, fetchurl, which }:
|
2012-12-08 21:36:38 +01:00
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="eprover";
|
2015-08-08 18:12:42 +02:00
|
|
|
version="1.9";
|
2012-12-08 21:36:38 +01:00
|
|
|
name="${baseName}-${version}";
|
2015-08-08 18:12:42 +02:00
|
|
|
hash="0vipapqjg0339lpc98vpvz58m6xkqrhgxylmp0hrnld4lrhmcdn4";
|
|
|
|
url="http://wwwlehre.dhbw-stuttgart.de/~sschulz/WORK/E_DOWNLOAD/V_1.9/E.tgz";
|
|
|
|
sha256="0vipapqjg0339lpc98vpvz58m6xkqrhgxylmp0hrnld4lrhmcdn4";
|
2012-12-08 21:36:38 +01:00
|
|
|
};
|
|
|
|
in
|
2007-10-07 15:37:08 +02:00
|
|
|
stdenv.mkDerivation {
|
2012-12-08 21:36:38 +01:00
|
|
|
inherit (s) name;
|
2007-10-07 15:37:08 +02:00
|
|
|
|
2008-09-02 15:51:32 +02:00
|
|
|
src = fetchurl {
|
2012-12-08 21:36:38 +01:00
|
|
|
name = "E-${s.version}.tar.gz";
|
|
|
|
inherit (s) url sha256;
|
2008-09-02 15:51:32 +02:00
|
|
|
};
|
2007-10-07 15:37:08 +02:00
|
|
|
|
2015-06-25 23:21:25 +02:00
|
|
|
buildInputs = [ which ];
|
2007-10-07 15:37:08 +02:00
|
|
|
|
2016-02-29 15:35:21 +01:00
|
|
|
preConfigure = ''
|
|
|
|
sed -e 's@^EXECPATH\\s.*@EXECPATH = '\$out'/bin@' \
|
|
|
|
-e 's/^CC *= gcc$//' \
|
|
|
|
-i Makefile.vars
|
|
|
|
'';
|
2007-10-07 15:37:08 +02:00
|
|
|
|
|
|
|
buildPhase = "make install";
|
2008-05-10 11:19:50 +02:00
|
|
|
|
2008-09-02 15:51:32 +02:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2010-08-26 06:34:20 +02:00
|
|
|
make install
|
2008-09-02 15:51:32 +02:00
|
|
|
echo eproof -xAuto --tstp-in --tstp-out '"$@"' > $out/bin/eproof-tptp
|
|
|
|
chmod a+x $out/bin/eproof-tptp
|
|
|
|
'';
|
2007-10-07 15:37:08 +02:00
|
|
|
|
|
|
|
meta = {
|
2012-12-08 21:36:38 +01:00
|
|
|
inherit (s) version;
|
2015-06-25 23:21:25 +02:00
|
|
|
description = "Automated theorem prover for full first-order logic with equality";
|
2016-02-29 15:35:21 +01:00
|
|
|
homepage = http://www.eprover.org/;
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2009-08-25 10:28:08 +02:00
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
2007-10-07 15:37:08 +02:00
|
|
|
};
|
|
|
|
}
|