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