2011-06-15 12:35:18 +02:00
|
|
|
x@{builderDefsPackage
|
|
|
|
, yap, tcsh, perl, patchelf, pkgsi686Linux
|
|
|
|
, ...}:
|
|
|
|
builderDefsPackage
|
|
|
|
(a :
|
|
|
|
let
|
|
|
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
|
|
["pkgsi686Linux"];
|
|
|
|
|
|
|
|
buildInputs = map (n: builtins.getAttr n x)
|
|
|
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
|
|
sourceInfo = rec {
|
|
|
|
baseName="TPTP";
|
2016-01-29 09:36:50 +01:00
|
|
|
version="6.3.0";
|
2011-06-15 12:35:18 +02:00
|
|
|
name="${baseName}-${version}";
|
2014-05-02 22:53:46 +02:00
|
|
|
urls=
|
|
|
|
[
|
|
|
|
"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"
|
|
|
|
];
|
2016-01-29 09:36:50 +01:00
|
|
|
hash="17wl80mnm91jp3npdjzfbb8ds45f2gni250jlfw0d91i1476wcl3";
|
2011-06-15 12:35:18 +02:00
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchurl {
|
2014-05-02 22:53:46 +02:00
|
|
|
urls = sourceInfo.urls;
|
2011-06-15 12:35:18 +02:00
|
|
|
sha256 = sourceInfo.hash;
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit (sourceInfo) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
|
|
|
|
/* doConfigure should be removed if not needed */
|
|
|
|
phaseNames = ["goTarget" "doUnpack" "fixPlace" "setVars" "installScripts"
|
|
|
|
"patchBinaries" "makeLinks"];
|
|
|
|
|
|
|
|
goTarget = a.fullDepEntry ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p "$out"/share/
|
2011-06-15 12:35:18 +02:00
|
|
|
cd "$out"/share/
|
|
|
|
'' ["defEnsureDir" "minInit"];
|
|
|
|
|
|
|
|
fixPlace = a.fullDepEntry ''
|
|
|
|
cd ..
|
|
|
|
mv TPTP-* tptp
|
|
|
|
cd tptp
|
|
|
|
'' ["minInit" "doUnpack"];
|
|
|
|
|
|
|
|
setVars = a.noDepEntry ''
|
|
|
|
export TPTP="$PWD"
|
|
|
|
'';
|
|
|
|
|
|
|
|
installScripts = a.fullDepEntry ''
|
|
|
|
tcsh "$out/share/tptp/Scripts/tptp2T_install" -default
|
|
|
|
|
|
|
|
sed -e 's@^ */bin/@@' -i TPTP2X/*
|
|
|
|
|
|
|
|
tcsh "$out/share/tptp/TPTP2X/tptp2X_install" -default
|
|
|
|
'' ["addInputs"];
|
|
|
|
|
|
|
|
makeLinks = a.fullDepEntry ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p "$out/bin"
|
2011-06-15 12:35:18 +02:00
|
|
|
ln -s "../share/tptp/TPTP2X/tptp2X" "$out/bin"
|
|
|
|
ln -s "../share/tptp/Scripts/tptp2T" "$out/bin"
|
|
|
|
ln -s "../share/tptp/Scripts/tptp4X" "$out/bin"
|
|
|
|
'' ["defEnsureDir" "minInit"];
|
|
|
|
|
|
|
|
patchBinaries = a.fullDepEntry ''
|
|
|
|
patchelf --set-interpreter "${pkgsi686Linux.glibc}"/lib/ld-linux.so.* \
|
|
|
|
"Scripts/tptp4X"
|
|
|
|
'' ["addInputs"];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Thousands of problems for theorem provers and tools";
|
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
|
|
|
# A GiB of data. Installation is unpacking and editing a few files.
|
|
|
|
# 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 = [];
|
2011-06-15 12:35:18 +02:00
|
|
|
license = "verbatim-redistribution";
|
|
|
|
};
|
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://tptp.org/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}) x
|
|
|
|
|