2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, gmp, mpfr, python
|
2016-01-17 09:29:18 +01:00
|
|
|
, gperftools, ninja, makeWrapper }:
|
2015-03-28 07:28:40 +01:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "lean2";
|
2017-08-19 15:24:35 +02:00
|
|
|
version = "2017-07-22";
|
2015-03-28 07:28:40 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "leanprover";
|
2016-12-08 16:08:29 +01:00
|
|
|
repo = "lean2";
|
2017-08-19 15:24:35 +02:00
|
|
|
rev = "34dbd6c3ae612186b8f0f80d12fbf5ae7a059ec9";
|
|
|
|
sha256 = "1xv3j487zhh1zf2b4v19xzw63s2sgjhg8d62a0kxxyknfmdf3khl";
|
2015-03-28 07:28:40 +01:00
|
|
|
};
|
|
|
|
|
2016-12-08 16:08:29 +01:00
|
|
|
buildInputs = [ gmp mpfr cmake python gperftools ninja makeWrapper ];
|
2015-03-28 07:28:40 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-05-16 12:12:34 +02:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs bin/leantags
|
|
|
|
cd src
|
|
|
|
'';
|
2015-03-28 07:28:40 +01:00
|
|
|
|
2017-08-27 19:42:21 +02:00
|
|
|
cmakeFlags = [ "-GNinja" ];
|
|
|
|
|
2016-01-17 09:29:18 +01:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/linja --prefix PATH : $out/bin:${ninja}/bin
|
|
|
|
'';
|
|
|
|
|
2016-07-27 11:01:45 +02:00
|
|
|
meta = with stdenv.lib; {
|
2016-12-08 16:08:29 +01:00
|
|
|
description = "Automatic and interactive theorem prover (version with HoTT support)";
|
2015-03-28 07:28:40 +01:00
|
|
|
homepage = "http://leanprover.github.io";
|
2016-07-27 11:01:45 +02:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice gebner ];
|
2015-03-28 07:28:40 +01:00
|
|
|
};
|
|
|
|
}
|