2017-02-25 23:50:15 -08:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, gmp }:
|
2016-12-08 07:29:33 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "lean";
|
2020-05-02 02:20:00 -07:00
|
|
|
version = "3.10.0";
|
2016-12-08 07:29:33 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-02-14 23:13:17 -08:00
|
|
|
owner = "leanprover-community";
|
2016-12-08 07:29:33 -08:00
|
|
|
repo = "lean";
|
2017-01-20 01:59:54 -08:00
|
|
|
rev = "v${version}";
|
2020-05-02 02:20:00 -07:00
|
|
|
sha256 = "0nmh09x3scfqg0bg1qf8b7z67s11hbfd7kr1h6k1zw94fyn2mg8q";
|
2016-12-08 07:29:33 -08:00
|
|
|
};
|
|
|
|
|
2017-10-18 06:37:50 -07:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ gmp ];
|
2016-12-08 07:29:33 -08:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cd src
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Automatic and interactive theorem prover";
|
2020-03-03 22:26:01 -08:00
|
|
|
homepage = "https://leanprover.github.io/";
|
2020-03-13 02:20:00 -07:00
|
|
|
changelog = "https://github.com/leanprover-community/lean/blob/v${version}/doc/changes.md";
|
2016-12-08 07:29:33 -08:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice gebner ];
|
|
|
|
};
|
|
|
|
}
|
2020-02-14 23:13:17 -08:00
|
|
|
|