1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 16:42:09 +00:00
nixpkgs/pkgs/applications/science/logic/eprover/default.nix

47 lines
1.2 KiB
Nix
Raw Normal View History

2015-06-25 22:21:25 +01:00
{ stdenv, fetchurl, which }:
2012-12-08 20:36:38 +00:00
let
s = # Generated upstream information
rec {
baseName="eprover";
2015-08-08 17:12:42 +01:00
version="1.9";
2012-12-08 20:36:38 +00:00
name="${baseName}-${version}";
2015-08-08 17:12:42 +01:00
hash="0vipapqjg0339lpc98vpvz58m6xkqrhgxylmp0hrnld4lrhmcdn4";
url="http://wwwlehre.dhbw-stuttgart.de/~sschulz/WORK/E_DOWNLOAD/V_1.9/E.tgz";
sha256="0vipapqjg0339lpc98vpvz58m6xkqrhgxylmp0hrnld4lrhmcdn4";
2012-12-08 20:36:38 +00:00
};
in
stdenv.mkDerivation {
2012-12-08 20:36:38 +00:00
inherit (s) name;
src = fetchurl {
2012-12-08 20:36:38 +00:00
name = "E-${s.version}.tar.gz";
inherit (s) url sha256;
};
2015-06-25 22:21:25 +01:00
buildInputs = [ which ];
2016-02-29 14:35:21 +00:00
preConfigure = ''
sed -e 's@^EXECPATH\\s.*@EXECPATH = '\$out'/bin@' \
-e 's/^CC *= gcc$//' \
-i Makefile.vars
'';
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 = {
2012-12-08 20:36:38 +00:00
inherit (s) version;
2015-06-25 22:21:25 +01:00
description = "Automated theorem prover for full first-order logic with equality";
2016-02-29 14:35:21 +00:00
homepage = http://www.eprover.org/;
license = stdenv.lib.licenses.gpl2;
maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.all;
};
}