2016-07-27 10:01:45 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, gmp, mpfr, boost, 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}";
|
|
|
|
version = "2016-11-29";
|
2015-03-28 06:28:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "leanprover";
|
2016-12-08 15:08:29 +00:00
|
|
|
repo = "lean2";
|
|
|
|
rev = "a086fb334838c427bbc8f984eb44a4cbbe013a6b";
|
|
|
|
sha256 = "0qlvhnb37amclgcyizl8bfab33b0a3jk54br9gsrik8cq76lkwwx";
|
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 11:12:34 +01:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs bin/leantags
|
|
|
|
cd src
|
|
|
|
'';
|
2015-03-28 06:28:40 +00:00
|
|
|
|
2016-01-17 08:29:18 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/linja --prefix PATH : $out/bin:${ninja}/bin
|
|
|
|
'';
|
|
|
|
|
2016-07-27 10:01:45 +01: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 10:01:45 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice gebner ];
|
2015-03-28 06:28:40 +00:00
|
|
|
};
|
|
|
|
}
|