2019-07-14 15:42:13 +03:00
|
|
|
{ fetchFromGitHub, gperf, openssl, readline, zlib, cmake, stdenv }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-12-02 14:04:10 +03:00
|
|
|
version = "1.7.0";
|
2019-07-14 15:42:13 +03:00
|
|
|
pname = "tdlib";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tdlib";
|
|
|
|
repo = "td";
|
2020-10-29 00:38:40 +03:00
|
|
|
|
2020-12-02 14:04:10 +03:00
|
|
|
rev = "v${version}";
|
2020-10-29 00:38:40 +03:00
|
|
|
|
2020-12-02 14:04:10 +03:00
|
|
|
sha256 = "sha256-sZzp9k7KDnqftcSGSgXkIy0siCksGPBmRckySU/J0TU=";
|
2019-07-14 15:42:13 +03: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 ];
|
2020-03-03 20:44:04 +03:00
|
|
|
platforms = platforms.unix;
|
2019-07-14 15:42:13 +03:00
|
|
|
maintainers = [ maintainers.vyorkin ];
|
|
|
|
};
|
|
|
|
}
|