iprover: reimplement using mkDerivation
This commit is contained in:
parent
bfbb866d41
commit
c6d645803a
@ -1,35 +1,19 @@
|
|||||||
x@{builderDefsPackage
|
{ stdenv, fetchurl, ocaml, eprover }:
|
||||||
, ocaml, eprover
|
|
||||||
, ...}:
|
|
||||||
builderDefsPackage
|
|
||||||
(a :
|
|
||||||
let
|
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
||||||
[];
|
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
stdenv.mkDerivation rec {
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
name = "iprover-${version}";
|
||||||
sourceInfo = rec {
|
version = "0.8.1";
|
||||||
baseName="iprover";
|
|
||||||
version="0.8.1";
|
src = fetchurl {
|
||||||
name="${baseName}_v${version}";
|
url = "http://iprover.googlecode.com/files/iprover_v${version}.tar.gz";
|
||||||
url="http://${baseName}.googlecode.com/files/${name}.tar.gz";
|
sha256 = "15qn523w4l296np5rnkwi50a5x2xqz0kaza7bsh9bkazph7jma7w";
|
||||||
hash="15qn523w4l296np5rnkwi50a5x2xqz0kaza7bsh9bkazph7jma7w";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = a.fetchurl {
|
|
||||||
url = sourceInfo.url;
|
|
||||||
sha256 = sourceInfo.hash;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
name = "${sourceInfo.baseName}-${sourceInfo.version}";
|
buildInputs = [ ocaml eprover ];
|
||||||
inherit buildInputs;
|
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
preConfigure = ''patchShebangs .'';
|
||||||
phaseNames = ["doConfigure" "doMake" "doDeploy"];
|
|
||||||
configureCommand = "sh configure";
|
installPhase = ''
|
||||||
doDeploy = a.fullDepEntry (''
|
|
||||||
mkdir -p "$out/bin"
|
mkdir -p "$out/bin"
|
||||||
cp iproveropt "$out/bin"
|
cp iproveropt "$out/bin"
|
||||||
|
|
||||||
@ -37,22 +21,16 @@ rec {
|
|||||||
cp *.p "$out/share/${name}"
|
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
|
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
|
chmod a+x "$out"/bin/iprover
|
||||||
'') ["defEnsureDir" "minInit" "doMake"];
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "An automated first-order logic theorem prover";
|
description = "An automated first-order logic theorem prover";
|
||||||
maintainers = with a.lib.maintainers;
|
maintainers = with maintainers;
|
||||||
[
|
[
|
||||||
raskin
|
raskin
|
||||||
];
|
];
|
||||||
platforms = with a.lib.platforms;
|
platforms = platforms.linux;
|
||||||
linux;
|
license = licenses.gpl3;
|
||||||
license = with a.lib.licenses;
|
|
||||||
gpl3;
|
|
||||||
};
|
|
||||||
passthru = {
|
|
||||||
updateInfo = {
|
|
||||||
downloadPage = "http://code.google.com/p/iprover/downloads/list";
|
downloadPage = "http://code.google.com/p/iprover/downloads/list";
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
}) x
|
|
||||||
|
Loading…
Reference in New Issue
Block a user