2010-12-04 19:39:44 +01:00
|
|
|
x@{builderDefsPackage
|
|
|
|
, ocaml, eprover
|
|
|
|
, ...}:
|
|
|
|
builderDefsPackage
|
|
|
|
(a :
|
|
|
|
let
|
|
|
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
|
|
[];
|
|
|
|
|
|
|
|
buildInputs = map (n: builtins.getAttr n x)
|
|
|
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
|
|
sourceInfo = rec {
|
|
|
|
baseName="iprover";
|
|
|
|
version="0.8.1";
|
|
|
|
name="${baseName}_v${version}";
|
|
|
|
url="${baseName}.googlecode.com/files/${name}.tar.gz";
|
|
|
|
hash="15qn523w4l296np5rnkwi50a5x2xqz0kaza7bsh9bkazph7jma7w";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchurl {
|
|
|
|
url = sourceInfo.url;
|
|
|
|
sha256 = sourceInfo.hash;
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit (sourceInfo) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
|
|
|
|
/* doConfigure should be removed if not needed */
|
|
|
|
phaseNames = ["doConfigure" "doMake" "doDeploy"];
|
|
|
|
configureCommand = "sh configure";
|
|
|
|
doDeploy = a.fullDepEntry (''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p "$out/bin"
|
2010-12-04 19:39:44 +01:00
|
|
|
cp iproveropt "$out/bin"
|
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p "$out/share/${name}"
|
2010-12-04 19:39:44 +01:00
|
|
|
cp *.p "$out/share/${name}"
|
|
|
|
echo -e "#! /bin/sh\\n$out/bin/iproveropt --clausifier \"${eprover}/bin/eprover\" --clausifier_options \" --tstp-format --silent --cnf \" \"\$@\"" > "$out"/bin/iprover
|
|
|
|
chmod a+x "$out"/bin/iprover
|
|
|
|
'') ["defEnsureDir" "minInit" "doMake"];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An automated first-order logic theorem prover";
|
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
linux;
|
|
|
|
license = "GPLv3";
|
|
|
|
};
|
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://code.google.com/p/iprover/downloads/list";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}) x
|
|
|
|
|