Adding Satallax prover
svn path=/nixpkgs/trunk/; revision=24963
This commit is contained in:
parent
44e152f8d8
commit
64ed7e705d
72
pkgs/applications/science/logic/satallax/default.nix
Normal file
72
pkgs/applications/science/logic/satallax/default.nix
Normal file
@ -0,0 +1,72 @@
|
||||
x@{builderDefsPackage
|
||||
, sbcl, zlib
|
||||
, ...}:
|
||||
builderDefsPackage
|
||||
(a :
|
||||
let
|
||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
||||
[];
|
||||
|
||||
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
|
||||
)
|
||||
|
||||
ensureDir "$out/bin"
|
||||
cp minisat/simp/minisat "$out/bin"
|
||||
|
||||
echo "(setq *minisat-binary* \"$out/bin/minisat\")" > config.lisp
|
||||
|
||||
'') ["defEnsureDir" "minInit" "addInputs" "doUnpack"];
|
||||
doDeploy = a.fullDepEntry (''
|
||||
ensureDir "$out/share/satallax/build-dir"
|
||||
cp -r * "$out/share/satallax/build-dir"
|
||||
cd "$out/share/satallax/build-dir"
|
||||
|
||||
sbcl --load make.lisp
|
||||
! ( ./test | grep ERROR )
|
||||
|
||||
ensureDir "$out/bin"
|
||||
cp bin/satallax "$out/bin"
|
||||
'') ["defEnsureDir" "minInit" "addInputs" "doUnpack"];
|
||||
|
||||
meta = {
|
||||
description = "A higher-order logic prover";
|
||||
maintainers = with a.lib.maintainers;
|
||||
[
|
||||
raskin
|
||||
];
|
||||
platforms = with a.lib.platforms;
|
||||
unix;
|
||||
license = "free-noncopyleft";
|
||||
homepage = "http://www.ps.uni-saarland.de/~cebrown/satallax/";
|
||||
};
|
||||
passthru = {
|
||||
updateInfo = {
|
||||
downloadPage = "http://www.ps.uni-saarland.de/~cebrown/satallax/";
|
||||
};
|
||||
};
|
||||
}) x
|
||||
|
@ -10,6 +10,11 @@ let
|
||||
buildInputs = map (n: builtins.getAttr n x)
|
||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
||||
sourceInfo = rec {
|
||||
baseName="${abort ''Specify package name''}";
|
||||
version="";
|
||||
name="${baseName}-${version}";
|
||||
url="${name}";
|
||||
hash="";
|
||||
};
|
||||
in
|
||||
rec {
|
||||
@ -32,6 +37,7 @@ rec {
|
||||
];
|
||||
platforms = with a.lib.platforms;
|
||||
(abort "Specify platforms");
|
||||
license = "${abort ''Specify license''}";
|
||||
};
|
||||
passthru = {
|
||||
updateInfo = {
|
||||
|
@ -6983,6 +6983,8 @@ let
|
||||
|
||||
prover9 = callPackage ../applications/science/logic/prover9 { };
|
||||
|
||||
satallax = callPackage ../applications/science/logic/satallax {};
|
||||
|
||||
ssreflect = callPackage ../applications/science/logic/ssreflect {
|
||||
camlp5 = camlp5_transitional;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user