git.iko.soy/typeable/nixpkgs
on master help sign in
satallax: 1.4 -> 2.7
commit011f69992a37982974aabc80186b9d10a2d719af authorMichael Raskin <7c6f434c@mail.ru> dateThu 31 Mar 2016, 16:22 (11 years ago) parentfc1e886
1 file changed+51−56
pkgs/applications/science/logic/satallax/default.nix+51−56
pkgs/applications/science/logic/satallax/default.nix+51−56
@@ -1,71 +1,66 @@
1−x@{builderDefsPackage
2− , sbcl, zlib
3− , ...}:
4−builderDefsPackage
5−(a :
6−let
7− helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
8− [];
1+{stdenv, fetchurl, ocaml, zlib, which, eprover, makeWrapper, coq}:
2+stdenv.mkDerivation rec {
3+ name = "satallax-${version}";
4+ version = "2.7";
95
10− buildInputs = map (n: builtins.getAttr n x)
11− (builtins.attrNames (builtins.removeAttrs x helperArgNames));
12− sourceInfo = rec {
13− baseName="satallax";
14− version="1.4";
15− name="${baseName}-${version}";
16− url="http://www.ps.uni-saarland.de/~cebrown/satallax/downloads/${name}.tar.gz";
17− hash="0l8dq4nyfw2bdsyqmgb4v6fjw3739p8nqv4bh2gh2924ibzrq5fc";
6+ buildInputs = [ocaml zlib which eprover makeWrapper coq];
7+ src = fetchurl {
8+ url = "http://www.ps.uni-saarland.de/~cebrown/satallax/downloads/${name}.tar.gz";
9+ sha256 = "1kvxn8mc35igk4vigi5cp7w3wpxk2z3bgwllfm4n3h2jfs0vkpib";
1810 };
19−in
20−rec {
21− src = a.fetchurl {
22− url = sourceInfo.url;
23− sha256 = sourceInfo.hash;
24− };
25−
26− inherit (sourceInfo) name version;
27− inherit buildInputs;
2811
29− phaseNames = ["doDeployMinisat" "doDeploy"];
12+ preConfigure = ''
13+ mkdir fake-tools
14+ echo "echo 'Nix-build-host.localdomain'" > fake-tools/hostname
15+ chmod a+x fake-tools/hostname
16+ export PATH="$PATH:$PWD/fake-tools"
3017
31− doDeployMinisat = a.fullDepEntry (''
3218 (
33− cd minisat/simp
19+ cd picosat-*
20+ ./configure
21+ make
22+ )
23+ export PATH="$PATH:$PWD/libexec/satallax"
24+
25+ mkdir -p "$out/libexec/satallax"
26+ cp picosat-*/picosat picosat-*/picomus "$out/libexec/satallax"
27+
28+ (
29+ cd minisat
30+ export MROOT=$PWD
31+ cd core
32+ make
33+ cd ../simp
3434 make
3535 )
36+ '';
3637
37− mkdir -p "$out/bin"
38− cp minisat/simp/minisat "$out/bin"
38+ postBuild = "echo testing; ! (bash ./test | grep ERROR)";
3939
40− echo "(setq *minisat-binary* \"$out/bin/minisat\")" > config.lisp
40+ installPhase = ''
41+ mkdir -p "$out/share/doc/satallax" "$out/bin" "$out/lib" "$out/lib/satallax"
42+ cp bin/satallax.opt "$out/bin/satallax"
43+ wrapProgram "$out/bin/satallax" \
44+ --suffix PATH : "${coq}/bin:${eprover}/bin:$out/libexec/satallax" \
45+ --add-flags "-M" --add-flags "$out/lib/satallax/modes"
4146
42− '') ["defEnsureDir" "minInit" "addInputs" "doUnpack"];
43− doDeploy = a.fullDepEntry (''
44− mkdir -p "$out/share/satallax/build-dir"
45− cp -r * "$out/share/satallax/build-dir"
46− cd "$out/share/satallax/build-dir"
47+ cp LICENSE README "$out/share/doc/satallax"
4748
48− sbcl --load make.lisp
49− ! ( ./test | grep ERROR )
49+ cp bin/*.so "$out/lib"
5050
51− mkdir -p "$out/bin"
52− cp bin/satallax "$out/bin"
53− '') ["defEnsureDir" "minInit" "addInputs" "doUnpack"];
51+ cp -r modes "$out/lib/satallax/"
52+ cp -r problems "$out/lib/satallax/"
53+ cp -r coq* "$out/lib/satallax/"
54+ '';
5455
5556 meta = {
56− description = "A higher-order logic prover";
57− maintainers = with a.lib.maintainers;
58− [
59− raskin
60− ];
61− platforms = with a.lib.platforms;
62− unix;
63− license = a.lib.licenses.free;
64− homepage = "http://www.ps.uni-saarland.de/~cebrown/satallax/";
65− };
66− passthru = {
67− updateInfo = {
68− downloadPage = "http://www.ps.uni-saarland.de/~cebrown/satallax/";
69− };
57+ inherit version;
58+ description = ''Automated theorem prover for higher-order logic'';
59+ license = stdenv.lib.licenses.mit ;
60+ maintainers = [stdenv.lib.maintainers.raskin];
61+ platforms = stdenv.lib.platforms.linux;
62+ downloadPage = "http://www.ps.uni-saarland.de/~cebrown/satallax/downloads.php";
63+ homepage = "http://www.ps.uni-saarland.de/~cebrown/satallax/index.php";
64+ updateWalker = true;
7065 };
71−}) x
66+}