summary refs log tree commit diff
path: root/pkgs/applications/science/logic/lean/default.nix
blob: 4d391379e8190c3344bf9dedb14b08ec03ef89c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 ];
  };
}