2016-01-29 09:11:38 +00:00
|
|
|
{ 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 {
|
|
|
|
name = "TPTP-${version}";
|
|
|
|
version = "6.3.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = [
|
|
|
|
"http://www.cs.miami.edu/~tptp/TPTP/Distribution/TPTP-v${version}.tgz"
|
|
|
|
"http://www.cs.miami.edu/~tptp/TPTP/Archive/TPTP-v${version}/TPTP-v${version}.tgz"
|
2014-05-02 21:53:46 +01:00
|
|
|
];
|
2016-06-20 17:38:08 +01:00
|
|
|
sha256 = "0xy4cqniyx9fv8r9mc5q5b7xl163pkr9hcmpq6gkls2a0pvg07w9";
|
2011-06-15 11:35:18 +01:00
|
|
|
};
|
|
|
|
|
2016-01-29 09:11:38 +00:00
|
|
|
buildInputs = [ tcsh yap perl patchelf ];
|
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
|
|
|
|
2016-01-29 09:11:38 +00:00
|
|
|
meta = with stdenv.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
|
|
|
}
|