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