2010-07-29 18:55:16 +00:00
|
|
|
{ stdenv, fetchurl, which, texLive }:
|
2012-12-08 20:36:38 +00:00
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="eprover";
|
2013-10-20 17:03:04 +00:00
|
|
|
version="1.8";
|
2012-12-08 20:36:38 +00:00
|
|
|
name="${baseName}-${version}";
|
2013-10-20 17:03:04 +00:00
|
|
|
hash="0bl4dr7k6simwdvdyxhnjkiz4nm5y0nr8bfhc34zk0360i9m6sk3";
|
|
|
|
url="http://www4.in.tum.de/~schulz/WORK/E_DOWNLOAD/V_1.8/E.tgz";
|
|
|
|
sha256="0bl4dr7k6simwdvdyxhnjkiz4nm5y0nr8bfhc34zk0360i9m6sk3";
|
2012-12-08 20:36:38 +00:00
|
|
|
};
|
|
|
|
in
|
2007-10-07 13:37:08 +00:00
|
|
|
stdenv.mkDerivation {
|
2012-12-08 20:36:38 +00:00
|
|
|
inherit (s) name;
|
2007-10-07 13:37:08 +00:00
|
|
|
|
2008-09-02 13:51:32 +00:00
|
|
|
src = fetchurl {
|
2012-12-08 20:36:38 +00:00
|
|
|
name = "E-${s.version}.tar.gz";
|
|
|
|
inherit (s) url sha256;
|
2008-09-02 13:51:32 +00:00
|
|
|
};
|
2007-10-07 13:37:08 +00:00
|
|
|
|
2008-09-02 13:51:32 +00:00
|
|
|
buildInputs = [which texLive];
|
2007-10-07 13:37:08 +00:00
|
|
|
|
|
|
|
preConfigure = "sed -e 's@^EXECPATH\\s.*@EXECPATH = '\$out'/bin@' -i Makefile.vars";
|
|
|
|
|
|
|
|
buildPhase = "make install";
|
2008-05-10 09:19:50 +00:00
|
|
|
|
|
|
|
# HOME=. allows to build missing TeX formats
|
2008-09-02 13:51:32 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2010-08-26 04:34:20 +00:00
|
|
|
make install
|
2008-09-02 13:51:32 +00:00
|
|
|
HOME=. make documentation
|
|
|
|
mkdir -p $out/share/doc
|
|
|
|
cp -r DOC $out/share/doc/EProver
|
|
|
|
echo eproof -xAuto --tstp-in --tstp-out '"$@"' > $out/bin/eproof-tptp
|
|
|
|
chmod a+x $out/bin/eproof-tptp
|
|
|
|
'';
|
2007-10-07 13:37:08 +00:00
|
|
|
|
|
|
|
meta = {
|
2012-12-08 20:36:38 +00:00
|
|
|
inherit (s) version;
|
2008-09-02 13:51:32 +00:00
|
|
|
description = "E automated theorem prover";
|
2009-08-25 08:28:08 +00:00
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
2007-10-07 13:37:08 +00:00
|
|
|
};
|
|
|
|
}
|