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}";
|
2018-03-12 15:49:34 +00:00
|
|
|
version = "7.1.0";
|
2016-01-29 09:11:38 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = [
|
|
|
|
"http://www.cs.miami.edu/~tptp/TPTP/Distribution/TPTP-v${version}.tgz"
|
2017-10-02 10:45:58 +01:00
|
|
|
"http://www.cs.miami.edu/~tptp/TPTP/Archive/TPTP-v${version}.tgz"
|
2014-05-02 21:53:46 +01:00
|
|
|
];
|
2018-03-12 15:49:34 +00:00
|
|
|
sha256 = "0slqbqv4y43wz6wnh72s4n540ssapah0d12mndi0c7xr04kf2v2d";
|
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
|
|
|
}
|