nixpkgs/pkgs/applications/science/logic/lean2/default.nix

35 lines
959 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, cmake, gmp, mpfr, boost, python
2016-01-17 08:29:18 +00:00
, 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;
2015-05-16 11:12:34 +01:00
preConfigure = ''
patchShebangs bin/leantags
cd src
'';
2016-01-17 08:29:18 +00:00
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 ];
};
}