summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorArseniy Seroka <jagajaga@users.noreply.github.com>2015-09-21 22:54:32 +0300
committerArseniy Seroka <jagajaga@users.noreply.github.com>2015-09-21 22:54:32 +0300
commiteeea90a61d1bec0971185e6f41745a2ce0344f91 (patch)
tree09c6096f6b9d79ec10bfe87c42d8bd5608f09849 /pkgs
parent3e9e2d99fa21600d57d927a48e15dc3b76f6b11d (diff)
parent5493dccfbb28fb78058e821945a683ce8afe37c7 (diff)
downloadnixlib-eeea90a61d1bec0971185e6f41745a2ce0344f91.tar
nixlib-eeea90a61d1bec0971185e6f41745a2ce0344f91.tar.gz
nixlib-eeea90a61d1bec0971185e6f41745a2ce0344f91.tar.bz2
nixlib-eeea90a61d1bec0971185e6f41745a2ce0344f91.tar.lz
nixlib-eeea90a61d1bec0971185e6f41745a2ce0344f91.tar.xz
nixlib-eeea90a61d1bec0971185e6f41745a2ce0344f91.tar.zst
nixlib-eeea90a61d1bec0971185e6f41745a2ce0344f91.zip
Merge pull request #9976 from gebner/metis
metis: init at 2.3
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/science/logic/metis-prover/default.nix29
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/science/logic/metis-prover/default.nix b/pkgs/applications/science/logic/metis-prover/default.nix
new file mode 100644
index 000000000000..0aa3d6e51c37
--- /dev/null
+++ b/pkgs/applications/science/logic/metis-prover/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, fetchurl, perl, mlton }:
+
+stdenv.mkDerivation rec {
+  name = "metis-prover-${version}";
+  version = "2.3";
+
+  src = fetchurl {
+    url = "http://www.gilith.com/software/metis/metis.tar.gz";
+    sha256 = "07wqhic66i5ip2j194x6pswwrxyxrimpc4vg0haa5aqv9pfpmxad";
+  };
+
+  nativeBuildInputs = [ perl ];
+  buildInputs = [ mlton ];
+
+  patchPhase = "patchShebangs scripts/mlpp";
+
+  buildPhase = "make mlton";
+
+  installPhase = ''
+    install -Dm0755 bin/mlton/metis $out/bin/metis
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Automatic theorem prover for first-order logic with equality";
+    homepage = http://www.gilith.com/research/metis/;
+    license = licenses.mit;
+    maintainers = with maintainers; [ gebner ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 6ca93f2c4f9c..4891ec8d4ba2 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -14349,6 +14349,8 @@ let
             ocaml_mysql ocamlnet ulex08 camlzip ocaml_pcre;
   });
 
+  metis-prover = callPackage ../applications/science/logic/metis-prover { };
+
   minisat = callPackage ../applications/science/logic/minisat {};
 
   opensmt = callPackage ../applications/science/logic/opensmt { };