32 lines
802 B
Nix
32 lines
802 B
Nix
{ stdenv, fetchFromGitHub, cmake, gmp }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lean";
|
|
version = "3.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "leanprover-community";
|
|
repo = "lean";
|
|
rev = "v${version}";
|
|
sha256 = "0frs2vhxlzdliyydb462c1886dn585zd7yp7hdxzsri2v6gdh89g";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|
|
|