1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-11 15:15:36 +00:00
nixpkgs/pkgs/applications/science/logic/lean2/default.nix
Gabriel Ebner ce2a9a8f9b lean2: 2016-07-05 -> 2016-11-29
Renamed from lean since upstream renamed it as well.  The lean attribute
in nixpkgs will now refer to the new lean 3 version.
2016-12-08 10:30:28 -05:00

35 lines
959 B
Nix

{ stdenv, fetchFromGitHub, cmake, gmp, mpfr, boost, python
, gperftools, ninja, makeWrapper }:
stdenv.mkDerivation rec {
name = "lean2-${version}";
version = "2016-11-29";
src = fetchFromGitHub {
owner = "leanprover";
repo = "lean2";
rev = "a086fb334838c427bbc8f984eb44a4cbbe013a6b";
sha256 = "0qlvhnb37amclgcyizl8bfab33b0a3jk54br9gsrik8cq76lkwwx";
};
buildInputs = [ gmp mpfr cmake python gperftools ninja makeWrapper ];
enableParallelBuilding = true;
preConfigure = ''
patchShebangs bin/leantags
cd src
'';
postInstall = ''
wrapProgram $out/bin/linja --prefix PATH : $out/bin:${ninja}/bin
'';
meta = with stdenv.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 ];
};
}