2017-02-26 08:50:15 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, gmp }:
|
2016-12-08 16:29:33 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "lean-${version}";
|
2017-06-18 20:04:30 +02:00
|
|
|
version = "3.2.0";
|
2016-12-08 16:29:33 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "leanprover";
|
|
|
|
repo = "lean";
|
2017-01-20 10:59:54 +01:00
|
|
|
rev = "v${version}";
|
2017-06-18 20:04:30 +02:00
|
|
|
sha256 = "13sb9rwgc9ni2j5zx77imjhkzhix9d7klsdb8cg68c17b20sy1g3";
|
2016-12-08 16:29:33 +01:00
|
|
|
};
|
|
|
|
|
2017-02-26 08:50:15 +01:00
|
|
|
buildInputs = [ gmp cmake ];
|
2016-12-08 16:29:33 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cd src
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Automatic and interactive theorem prover";
|
|
|
|
homepage = "http://leanprover.github.io";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice gebner ];
|
|
|
|
};
|
|
|
|
}
|