2010-12-03 12:26:34 +01:00
|
|
|
x@{builderDefsPackage
|
|
|
|
, sbcl, zlib
|
|
|
|
, ...}:
|
|
|
|
builderDefsPackage
|
2014-11-06 01:44:33 +01:00
|
|
|
(a :
|
|
|
|
let
|
|
|
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
2010-12-03 12:26:34 +01:00
|
|
|
[];
|
|
|
|
|
|
|
|
buildInputs = map (n: builtins.getAttr n x)
|
|
|
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
|
|
sourceInfo = rec {
|
|
|
|
baseName="satallax";
|
|
|
|
version="1.4";
|
|
|
|
name="${baseName}-${version}";
|
|
|
|
url="http://www.ps.uni-saarland.de/~cebrown/satallax/downloads/${name}.tar.gz";
|
|
|
|
hash="0l8dq4nyfw2bdsyqmgb4v6fjw3739p8nqv4bh2gh2924ibzrq5fc";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchurl {
|
|
|
|
url = sourceInfo.url;
|
|
|
|
sha256 = sourceInfo.hash;
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit (sourceInfo) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
|
|
|
|
phaseNames = ["doDeployMinisat" "doDeploy"];
|
|
|
|
|
|
|
|
doDeployMinisat = a.fullDepEntry (''
|
|
|
|
(
|
|
|
|
cd minisat/simp
|
|
|
|
make
|
|
|
|
)
|
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p "$out/bin"
|
2010-12-03 12:26:34 +01:00
|
|
|
cp minisat/simp/minisat "$out/bin"
|
|
|
|
|
|
|
|
echo "(setq *minisat-binary* \"$out/bin/minisat\")" > config.lisp
|
|
|
|
|
|
|
|
'') ["defEnsureDir" "minInit" "addInputs" "doUnpack"];
|
|
|
|
doDeploy = a.fullDepEntry (''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p "$out/share/satallax/build-dir"
|
2010-12-03 12:26:34 +01:00
|
|
|
cp -r * "$out/share/satallax/build-dir"
|
|
|
|
cd "$out/share/satallax/build-dir"
|
|
|
|
|
|
|
|
sbcl --load make.lisp
|
|
|
|
! ( ./test | grep ERROR )
|
2014-11-06 01:44:33 +01:00
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p "$out/bin"
|
2010-12-03 12:26:34 +01:00
|
|
|
cp bin/satallax "$out/bin"
|
|
|
|
'') ["defEnsureDir" "minInit" "addInputs" "doUnpack"];
|
2014-11-06 01:44:33 +01:00
|
|
|
|
2010-12-03 12:26:34 +01:00
|
|
|
meta = {
|
|
|
|
description = "A higher-order logic prover";
|
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
unix;
|
2014-11-06 01:44:33 +01:00
|
|
|
license = a.lib.licenses.free;
|
2010-12-03 12:26:34 +01:00
|
|
|
homepage = "http://www.ps.uni-saarland.de/~cebrown/satallax/";
|
|
|
|
};
|
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://www.ps.uni-saarland.de/~cebrown/satallax/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}) x
|