2021-01-21 17:00:13 +00:00
|
|
|
{ fetchFromGitHub, gperf, openssl, readline, zlib, cmake, lib, stdenv }:
|
2019-07-14 13:42:13 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-12-02 11:04:10 +00:00
|
|
|
version = "1.7.0";
|
2019-07-14 13:42:13 +01:00
|
|
|
pname = "tdlib";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tdlib";
|
|
|
|
repo = "td";
|
2020-10-28 21:38:40 +00:00
|
|
|
|
2020-12-02 11:04:10 +00:00
|
|
|
rev = "v${version}";
|
2020-10-28 21:38:40 +00:00
|
|
|
|
2020-12-02 11:04:10 +00:00
|
|
|
sha256 = "sha256-sZzp9k7KDnqftcSGSgXkIy0siCksGPBmRckySU/J0TU=";
|
2019-07-14 13:42:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ gperf openssl readline zlib ];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-07-14 13:42:13 +01:00
|
|
|
description = "Cross-platform library for building Telegram clients";
|
|
|
|
homepage = "https://core.telegram.org/tdlib/";
|
|
|
|
license = [ licenses.boost ];
|
2020-03-03 17:44:04 +00:00
|
|
|
platforms = platforms.unix;
|
2019-07-14 13:42:13 +01:00
|
|
|
maintainers = [ maintainers.vyorkin ];
|
|
|
|
};
|
|
|
|
}
|