2010-07-29 20:55:16 +02:00
|
|
|
{ stdenv, fetchurl, which, texLive }:
|
2008-09-02 15:51:32 +02:00
|
|
|
|
2007-10-07 15:37:08 +02:00
|
|
|
stdenv.mkDerivation {
|
2010-08-26 00:23:55 +02:00
|
|
|
name = "EProver-1.2";
|
2007-10-07 15:37:08 +02:00
|
|
|
|
2008-09-02 15:51:32 +02:00
|
|
|
src = fetchurl {
|
2010-08-26 00:23:55 +02:00
|
|
|
name = "E-1.2.tar.gz";
|
|
|
|
url = "http://www4.informatik.tu-muenchen.de/~schulz/WORK/E_DOWNLOAD/V_1.2/E.tgz";
|
|
|
|
sha256 = "14sbpmh8vg376lrrq7i364aa8g5aacq344ihivxn6w4ydh9138nq";
|
2008-09-02 15:51:32 +02:00
|
|
|
};
|
2007-10-07 15:37:08 +02:00
|
|
|
|
2008-09-02 15:51:32 +02:00
|
|
|
buildInputs = [which texLive];
|
2007-10-07 15:37:08 +02:00
|
|
|
|
|
|
|
preConfigure = "sed -e 's@^EXECPATH\\s.*@EXECPATH = '\$out'/bin@' -i Makefile.vars";
|
|
|
|
|
|
|
|
buildPhase = "make install";
|
2008-05-10 11:19:50 +02:00
|
|
|
|
|
|
|
# HOME=. allows to build missing TeX formats
|
2008-09-02 15:51:32 +02:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
make install-exec
|
|
|
|
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 15:37:08 +02:00
|
|
|
|
|
|
|
meta = {
|
2008-09-02 15:51:32 +02:00
|
|
|
description = "E automated theorem prover";
|
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
|
|
|
};
|
|
|
|
}
|