4fc29cb41f
GitOrigin-RevId: 135073a87b7e2c631739f4ffa016e1859b1a425e
36 lines
979 B
Nix
36 lines
979 B
Nix
{ stdenv, fetchFromGitHub, cmake, gmp, coreutils }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lean";
|
|
version = "3.14.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "leanprover-community";
|
|
repo = "lean";
|
|
rev = "v${version}";
|
|
sha256 = "1dlzap3j26rh93ick1lqb7g3jkqjpd33gl4gqfcbx22v62258y5b";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ gmp ];
|
|
enableParallelBuilding = true;
|
|
|
|
preConfigure = ''
|
|
cd src
|
|
'';
|
|
|
|
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
substituteInPlace $out/bin/leanpkg \
|
|
--replace "greadlink" "${coreutils}/bin/readlink"
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|
|
|