2021-02-05 17:12:51 +00:00
|
|
|
{ fetchFromGitHub, gperf, openssl, readline, zlib, cmake, lib, stdenv }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-12-03 08:41:04 +00:00
|
|
|
version = "1.7.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "tdlib";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tdlib";
|
|
|
|
repo = "td";
|
2020-11-03 02:18:15 +00:00
|
|
|
|
2020-12-03 08:41:04 +00:00
|
|
|
rev = "v${version}";
|
2020-11-03 02:18:15 +00:00
|
|
|
|
2020-12-03 08:41:04 +00:00
|
|
|
sha256 = "sha256-sZzp9k7KDnqftcSGSgXkIy0siCksGPBmRckySU/J0TU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ gperf openssl readline zlib ];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Cross-platform library for building Telegram clients";
|
|
|
|
homepage = "https://core.telegram.org/tdlib/";
|
|
|
|
license = [ licenses.boost ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.vyorkin ];
|
|
|
|
};
|
|
|
|
}
|