3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/logic/lean2/default.nix

38 lines
980 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, gmp, mpfr, python
2016-01-17 08:29:18 +00:00
, gperftools, ninja, makeWrapper }:
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
pname = "lean2";
version = "2017-07-22";
src = fetchFromGitHub {
owner = "leanprover";
repo = "lean2";
rev = "34dbd6c3ae612186b8f0f80d12fbf5ae7a059ec9";
sha256 = "1xv3j487zhh1zf2b4v19xzw63s2sgjhg8d62a0kxxyknfmdf3khl";
};
nativeBuildInputs = [ cmake makeWrapper ninja ];
buildInputs = [ gmp mpfr python gperftools ];
2015-05-16 11:12:34 +01:00
preConfigure = ''
patchShebangs bin/leantags
cd src
'';
cmakeFlags = [ "-GNinja" ];
2016-01-17 08:29:18 +00:00
postInstall = ''
wrapProgram $out/bin/linja --prefix PATH : $out/bin:${ninja}/bin
'';
meta = with lib; {
description = "Automatic and interactive theorem prover (version with HoTT support)";
homepage = "http://leanprover.github.io";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ thoughtpolice gebner ];
broken = true;
};
}