summary refs log tree commit diff
path: root/pkgs/applications/science/logic
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2014-08-12 03:57:40 +0400
committerMichael Raskin <7c6f434c@mail.ru>2014-08-12 03:57:52 +0400
commitf1f0f0cf199d7f7dc96f1047ac0ea3d8f7ac6bff (patch)
tree8ceed6cf7cf7ce528ad27b960d3162c43963cdb4 /pkgs/applications/science/logic
parent66858833e3a86c7fef4f221fa4c82644bae5ba82 (diff)
downloadnixlib-f1f0f0cf199d7f7dc96f1047ac0ea3d8f7ac6bff.tar
nixlib-f1f0f0cf199d7f7dc96f1047ac0ea3d8f7ac6bff.tar.gz
nixlib-f1f0f0cf199d7f7dc96f1047ac0ea3d8f7ac6bff.tar.bz2
nixlib-f1f0f0cf199d7f7dc96f1047ac0ea3d8f7ac6bff.tar.lz
nixlib-f1f0f0cf199d7f7dc96f1047ac0ea3d8f7ac6bff.tar.xz
nixlib-f1f0f0cf199d7f7dc96f1047ac0ea3d8f7ac6bff.tar.zst
nixlib-f1f0f0cf199d7f7dc96f1047ac0ea3d8f7ac6bff.zip
Update and fix LEO2 prover
Diffstat (limited to 'pkgs/applications/science/logic')
-rw-r--r--pkgs/applications/science/logic/leo2/default.nix22
-rw-r--r--pkgs/applications/science/logic/leo2/default.upstream6
2 files changed, 18 insertions, 10 deletions
diff --git a/pkgs/applications/science/logic/leo2/default.nix b/pkgs/applications/science/logic/leo2/default.nix
index 913171827af1..8f673eb0f15a 100644
--- a/pkgs/applications/science/logic/leo2/default.nix
+++ b/pkgs/applications/science/logic/leo2/default.nix
@@ -1,5 +1,5 @@
 x@{builderDefsPackage
-  , ocaml, eprover
+  , ocaml, eprover, zlib
   , ...}:
 builderDefsPackage
 (a :  
@@ -11,16 +11,16 @@ let
     (builtins.attrNames (builtins.removeAttrs x helperArgNames));
   sourceInfo = rec {
     baseName="leo2";
-    version="1.2.8";
+    version = "1.6.2";
     name="${baseName}_v${version}";
-    url="http://www.ags.uni-sb.de/~leo/${name}.tgz";
-    hash="d46a94f5991623386eb9061cfb0d748e258359a8c690fded173d45303e0e9e3a";
+    url="page.mi.fu-berlin.de/cbenzmueller/leo/leo2_v${version}.tgz";
+    hash="d46a94f5991623386eb9061cfb0d748e258359a8c690fded173d35303e0e9e3a";
   };
 in
 rec {
   src = a.fetchurl {
     url = sourceInfo.url;
-    sha256 = sourceInfo.hash;
+    sha256 = "1wjpmizb181iygnd18lx7p77fwaci2clgzs5ix5j51cc8f3pazmv";
   };
 
   name = "${sourceInfo.baseName}-${sourceInfo.version}";
@@ -43,6 +43,10 @@ rec {
     echo -e "e = ${eprover}/bin/eprover\\nepclextract = ${eprover}/bin/epclextract" > "$out/etc/leoatprc"
   '') ["minInit" "doMake" "defEnsureDir"];
 
+  makeFlags = [
+    "SHELL=${a.stdenv.shell}"
+  ];
+
   meta = {
     description = "A high-performance typed higher order prover";
     maintainers = with a.lib.maintainers;
@@ -52,11 +56,9 @@ rec {
     platforms = with a.lib.platforms;
       linux;
     license = "BSD";
-  };
-  passthru = {
-    updateInfo = {
-      downloadPage = "http://www.ags.uni-sb.de/~leo/download.html";
-    };
+    inherit (sourceInfo) version;
+    homepage = "http://page.mi.fu-berlin.de/cbenzmueller/leo/";
+    downloadPage = "http://page.mi.fu-berlin.de/cbenzmueller/leo/download.html";
   };
 }) x
 
diff --git a/pkgs/applications/science/logic/leo2/default.upstream b/pkgs/applications/science/logic/leo2/default.upstream
new file mode 100644
index 000000000000..52b8ed1cdaa2
--- /dev/null
+++ b/pkgs/applications/science/logic/leo2/default.upstream
@@ -0,0 +1,6 @@
+url http://page.mi.fu-berlin.de/cbenzmueller/leo/download.html
+version_link '[.]tgz'
+version '.*_v([0-9.]+)[.][a-z0-9]+$' '\1'
+do_overwrite () {
+  do_overwrite_just_version
+}