about summary refs log tree commit diff
path: root/pkgs/applications/science/logic/lean
diff options
context:
space:
mode:
authorAustin Seipp <aseipp@pobox.com>2015-03-28 01:28:40 -0500
committerAustin Seipp <aseipp@pobox.com>2015-03-28 01:47:39 -0500
commita6813ca62d240f25b5a28545ae5ea70f20b2a86d (patch)
tree443f071afb2d556e2ca91cc25603040cd3ac00d5 /pkgs/applications/science/logic/lean
parent75ab87edc8128e03143d12ee037e8a4a09fd0e39 (diff)
nixpkgs: add lean-20150328, a theorem prover.
Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'pkgs/applications/science/logic/lean')
-rw-r--r--pkgs/applications/science/logic/lean/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/applications/science/logic/lean/default.nix b/pkgs/applications/science/logic/lean/default.nix
new file mode 100644
index 0000000000000..4d391379e8190
--- /dev/null
+++ b/pkgs/applications/science/logic/lean/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, fetchFromGitHub, cmake, gmp, mpfr, luajit, boost, python
+, gperftools, ninja }:
+
+stdenv.mkDerivation rec {
+  name = "lean-20150328";
+
+  src = fetchFromGitHub {
+    owner  = "leanprover";
+    repo   = "lean";
+    rev    = "1b15036dba469020d37f7d6b77b88974d8a36cb1";
+    sha256 = "0w38g83gp7d3ybfiz9jpl2jz3ljad70bxmar0dnnv45wx42clg96";
+  };
+
+  buildInputs = [ gmp mpfr luajit boost cmake python gperftools ninja ];
+  enableParallelBuilding = true;
+
+  preConfigure = "cd src";
+
+  cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ];
+
+  meta = {
+    description = "Automatic and interactive theorem prover";
+    homepage    = "http://leanprover.github.io";
+    license     = stdenv.lib.licenses.asl20;
+    platforms   = stdenv.lib.platforms.unix;
+    maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
+  };
+}