2016-01-29 10:11:38 +01:00
|
|
|
{ stdenv, fetchurl, yap, tcsh, perl, patchelf }:
|
2011-06-15 12:35:18 +02:00
|
|
|
|
2016-01-29 10:11:38 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "TPTP";
|
2018-11-15 15:49:55 +01:00
|
|
|
version = "7.2.0";
|
2016-01-29 10:11:38 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-11-15 15:56:18 +01:00
|
|
|
urls = [
|
2019-05-09 20:21:10 +02:00
|
|
|
"http://tptp.cs.miami.edu/TPTP/Distribution/TPTP-v${version}.tgz"
|
|
|
|
"http://tptp.cs.miami.edu/TPTP/Archive/TPTP-v${version}.tgz"
|
2014-05-02 22:53:46 +02:00
|
|
|
];
|
2018-11-15 15:49:55 +01:00
|
|
|
sha256 = "0yq8452b6mym4yscy46pshg0z2my8xi74b5bp2qlxd5bjwcrg6rl";
|
2011-06-15 12:35:18 +02:00
|
|
|
};
|
|
|
|
|
2018-09-27 23:38:10 +02:00
|
|
|
nativeBuildInputs = [ patchelf ];
|
|
|
|
buildInputs = [ tcsh yap perl ];
|
2011-06-15 12:35:18 +02:00
|
|
|
|
2016-01-29 10:11:38 +01:00
|
|
|
installPhase = ''
|
|
|
|
sharedir=$out/share/tptp
|
2011-06-15 12:35:18 +02:00
|
|
|
|
2016-01-29 10:11:38 +01:00
|
|
|
mkdir -p $sharedir
|
|
|
|
cp -r ./ $sharedir
|
2011-06-15 12:35:18 +02:00
|
|
|
|
2016-01-29 10:11:38 +01:00
|
|
|
export TPTP=$sharedir
|
2011-06-15 12:35:18 +02:00
|
|
|
|
2016-01-29 10:11:38 +01:00
|
|
|
tcsh $sharedir/Scripts/tptp2T_install -default
|
2011-06-15 12:35:18 +02:00
|
|
|
|
2016-01-29 10:11:38 +01:00
|
|
|
substituteInPlace $sharedir/TPTP2X/tptp2X_install --replace /bin/mv mv
|
|
|
|
tcsh $sharedir/TPTP2X/tptp2X_install -default
|
2011-06-15 12:35:18 +02:00
|
|
|
|
2016-01-29 10:11:38 +01:00
|
|
|
patchelf --interpreter $(cat $NIX_CC/nix-support/dynamic-linker) $sharedir/Scripts/tptp4X
|
2011-06-15 12:35:18 +02:00
|
|
|
|
2016-01-29 10:11:38 +01:00
|
|
|
mkdir -p $out/bin
|
|
|
|
ln -s $sharedir/TPTP2X/tptp2X $out/bin
|
|
|
|
ln -s $sharedir/Scripts/tptp2T $out/bin
|
|
|
|
ln -s $sharedir/Scripts/tptp4X $out/bin
|
|
|
|
'';
|
2011-06-15 12:35:18 +02:00
|
|
|
|
2016-01-29 10:11:38 +01:00
|
|
|
meta = with stdenv.lib; {
|
2011-06-15 12:35:18 +02:00
|
|
|
description = "Thousands of problems for theorem provers and tools";
|
2016-01-29 10:11:38 +01:00
|
|
|
maintainers = with maintainers; [ raskin gebner ];
|
|
|
|
# 6.3 GiB of data. Installation is unpacking and editing a few files.
|
2011-06-15 12:35:18 +02:00
|
|
|
# No sense in letting Hydra build it.
|
|
|
|
# Also, it is unclear what is covered by "verbatim" - we will edit configs
|
2013-11-05 00:04:36 +01:00
|
|
|
hydraPlatforms = [];
|
2016-01-29 10:11:38 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.unfreeRedistributable;
|
2011-06-15 12:35:18 +02:00
|
|
|
};
|
2016-01-29 10:11:38 +01:00
|
|
|
}
|