2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, gmp, mpfr, python
|
2016-01-17 08:29:18 +00:00
|
|
|
, gperftools, ninja, makeWrapper }:
|
2015-03-28 06:28:40 +00:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "lean2";
|
2017-08-19 14:24:35 +01:00
|
|
|
version = "2017-07-22";
|
2015-03-28 06:28:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "leanprover";
|
2016-12-08 15:08:29 +00:00
|
|
|
repo = "lean2";
|
2017-08-19 14:24:35 +01:00
|
|
|
rev = "34dbd6c3ae612186b8f0f80d12fbf5ae7a059ec9";
|
|
|
|
sha256 = "1xv3j487zhh1zf2b4v19xzw63s2sgjhg8d62a0kxxyknfmdf3khl";
|
2015-03-28 06:28:40 +00:00
|
|
|
};
|
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake makeWrapper ninja ];
|
|
|
|
buildInputs = [ gmp mpfr python gperftools ];
|
2015-03-28 06:28:40 +00:00
|
|
|
|
2015-05-16 11:12:34 +01:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs bin/leantags
|
|
|
|
cd src
|
|
|
|
'';
|
2015-03-28 06:28:40 +00:00
|
|
|
|
2017-08-27 18:42:21 +01:00
|
|
|
cmakeFlags = [ "-GNinja" ];
|
|
|
|
|
2016-01-17 08:29:18 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/linja --prefix PATH : $out/bin:${ninja}/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-12-08 15:08:29 +00:00
|
|
|
description = "Automatic and interactive theorem prover (version with HoTT support)";
|
2015-03-28 06:28:40 +00:00
|
|
|
homepage = "http://leanprover.github.io";
|
2016-07-27 10:01:45 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice gebner ];
|
2019-10-07 16:20:23 +01:00
|
|
|
broken = true;
|
2015-03-28 06:28:40 +00:00
|
|
|
};
|
|
|
|
}
|