2015-03-28 06:28:40 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, gmp, mpfr, luajit, boost, python
|
2016-01-17 08:29:18 +00:00
|
|
|
, gperftools, ninja, makeWrapper }:
|
2015-03-28 06:28:40 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-08-21 08:26:10 +01:00
|
|
|
name = "lean-${version}";
|
2016-01-17 08:29:05 +00:00
|
|
|
version = "20160117";
|
2015-03-28 06:28:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "leanprover";
|
|
|
|
repo = "lean";
|
2016-01-17 08:29:05 +00:00
|
|
|
rev = "b2554dcb8f45899ccce84f226cd67b6460442930";
|
|
|
|
sha256 = "1gr024bly92kdjky5qvcm96gn86ijakziiyrsz91h643n1iyxhms";
|
2015-03-28 06:28:40 +00:00
|
|
|
};
|
|
|
|
|
2016-01-17 08:29:18 +00:00
|
|
|
buildInputs = [ gmp mpfr luajit boost cmake python gperftools ninja makeWrapper ];
|
2015-03-28 06:28:40 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-05-16 11:12:34 +01:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs bin/leantags
|
|
|
|
cd src
|
|
|
|
'';
|
2015-03-28 06:28:40 +00:00
|
|
|
|
|
|
|
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ];
|
|
|
|
|
2016-01-17 08:29:18 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/linja --prefix PATH : $out/bin:${ninja}/bin
|
|
|
|
'';
|
|
|
|
|
2015-03-28 06:28:40 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|