2019-07-14 13:42:13 +01:00
|
|
|
{ fetchFromGitHub, gperf, openssl, readline, zlib, cmake, stdenv }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-09-29 08:02:36 +01:00
|
|
|
version = "1.5.0";
|
2019-07-14 13:42:13 +01:00
|
|
|
pname = "tdlib";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tdlib";
|
|
|
|
repo = "td";
|
|
|
|
rev = "v${version}";
|
2019-09-29 08:02:36 +01:00
|
|
|
sha256 = "1rqxdvzlryqln5jzj35cwz1fjwy4s8xq97p0wdnpzbfjpcalvrm5";
|
2019-07-14 13:42:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ gperf openssl readline zlib ];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Cross-platform library for building Telegram clients";
|
|
|
|
homepage = "https://core.telegram.org/tdlib/";
|
|
|
|
license = [ licenses.boost ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.vyorkin ];
|
|
|
|
};
|
|
|
|
}
|