eprover: 1.9 -> 1.9.1

This commit is contained in:
Gabriel Ebner 2016-09-20 11:56:41 -04:00
parent 0fa64b718f
commit dd4a015aa8
2 changed files with 15 additions and 35 deletions

View File

@ -1,46 +1,29 @@
{ stdenv, fetchurl, which }:
let
s = # Generated upstream information
rec {
baseName="eprover";
version="1.9";
name="${baseName}-${version}";
hash="0vipapqjg0339lpc98vpvz58m6xkqrhgxylmp0hrnld4lrhmcdn4";
url="http://wwwlehre.dhbw-stuttgart.de/~sschulz/WORK/E_DOWNLOAD/V_1.9/E.tgz";
sha256="0vipapqjg0339lpc98vpvz58m6xkqrhgxylmp0hrnld4lrhmcdn4";
};
in
stdenv.mkDerivation {
inherit (s) name;
stdenv.mkDerivation rec {
name = "eprover-${version}";
version = "1.9.1";
src = fetchurl {
name = "E-${s.version}.tar.gz";
inherit (s) url sha256;
url = "http://wwwlehre.dhbw-stuttgart.de/~sschulz/WORK/E_DOWNLOAD/V_${version}/E.tgz";
sha256 = "1vi977mdfqnj04m590aw4896nqzlc4c5rqadjzk86z1zvj7mqnqw";
};
buildInputs = [ which ];
preConfigure = ''
sed -e 's@^EXECPATH\\s.*@EXECPATH = '\$out'/bin@' \
-e 's/^CC *= gcc$//' \
-i Makefile.vars
sed -e 's/ *CC *= gcc$//' -i Makefile.vars
'';
configureFlags = "--exec-prefix=$(out) --man-prefix=$(out)/share/man";
postInstall = ''
sed -e s,EXECPATH=.\*,EXECPATH=$out/bin, -i $out/bin/eproof{,_ram}
'';
buildPhase = "make install";
installPhase = ''
mkdir -p $out/bin
make install
echo eproof -xAuto --tstp-in --tstp-out '"$@"' > $out/bin/eproof-tptp
chmod a+x $out/bin/eproof-tptp
'';
meta = {
inherit (s) version;
meta = with stdenv.lib; {
description = "Automated theorem prover for full first-order logic with equality";
homepage = http://www.eprover.org/;
license = stdenv.lib.licenses.gpl2;
maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.all;
license = licenses.gpl2;
maintainers = with maintainers; [ raskin gebner ];
platforms = platforms.all;
};
}

View File

@ -1,3 +0,0 @@
url http://wwwlehre.dhbw-stuttgart.de/~sschulz/E/Download.html
version_link '[.]tgz$'
version '.*[/]V_([0-9.]+)[/].*' '\1'