2020-05-16 10:20:00 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, gmp, coreutils }:
|
2016-12-08 15:29:33 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "lean";
|
2020-06-14 20:32:20 +01:00
|
|
|
version = "3.16.2";
|
2016-12-08 15:29:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-02-15 07:13:17 +00:00
|
|
|
owner = "leanprover-community";
|
2016-12-08 15:29:33 +00:00
|
|
|
repo = "lean";
|
2017-01-20 09:59:54 +00:00
|
|
|
rev = "v${version}";
|
2020-06-14 20:32:20 +01:00
|
|
|
sha256 = "0fvm7gvbr5kn258sqpnxa7dvzz84iv1dx1n066vih5gz80plz4lh";
|
2016-12-08 15:29:33 +00:00
|
|
|
};
|
|
|
|
|
2017-10-18 14:37:50 +01:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ gmp ];
|
2016-12-08 15:29:33 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cd src
|
|
|
|
'';
|
|
|
|
|
2020-05-16 10:20:00 +01:00
|
|
|
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
|
|
substituteInPlace $out/bin/leanpkg \
|
|
|
|
--replace "greadlink" "${coreutils}/bin/readlink"
|
|
|
|
'';
|
|
|
|
|
2016-12-08 15:29:33 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Automatic and interactive theorem prover";
|
2020-03-04 06:26:01 +00:00
|
|
|
homepage = "https://leanprover.github.io/";
|
2020-03-13 09:20:00 +00:00
|
|
|
changelog = "https://github.com/leanprover-community/lean/blob/v${version}/doc/changes.md";
|
2016-12-08 15:29:33 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice gebner ];
|
|
|
|
};
|
|
|
|
}
|
2020-02-15 07:13:17 +00:00
|
|
|
|