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