32 lines
802 B
Nix
32 lines
802 B
Nix
|
{ stdenv, fetchFromGitHub, cmake, gmp }:
|
||
|
|
||
|
stdenv.mkDerivation rec {
|
||
|
pname = "lean";
|
||
|
version = "3.9.0";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "leanprover-community";
|
||
|
repo = "lean";
|
||
|
rev = "v${version}";
|
||
|
sha256 = "0sklw211cmqp4y0c6nycfavpdxdpfwhq9a4sbwdlqd5agyf85h1j";
|
||
|
};
|
||
|
|
||
|
nativeBuildInputs = [ cmake ];
|
||
|
buildInputs = [ gmp ];
|
||
|
enableParallelBuilding = true;
|
||
|
|
||
|
preConfigure = ''
|
||
|
cd src
|
||
|
'';
|
||
|
|
||
|
meta = with stdenv.lib; {
|
||
|
description = "Automatic and interactive theorem prover";
|
||
|
homepage = "https://leanprover.github.io/";
|
||
|
changelog = "https://github.com/leanprover-community/lean/blob/v${version}/doc/changes.md";
|
||
|
license = licenses.asl20;
|
||
|
platforms = platforms.unix;
|
||
|
maintainers = with maintainers; [ thoughtpolice gebner ];
|
||
|
};
|
||
|
}
|
||
|
|