1{ lib, stdenv, fetchFromGitHub, cmake, gperf, openssl, zlib }:
2
3stdenv.mkDerivation {
4 pname = "telegram-bot-api";
5 version = "5.7";
6
7 src = fetchFromGitHub {
8 repo = "telegram-bot-api";
9 owner = "tdlib";
10 rev = "c57b04c4c8c4e8d8bb6fdd0bd3bfb5b93b9d8f05";
11 sha256 = "sha256-WetzX8GBdwQAnnZjek+W4v+QN1aUFdlvs+Jv6n1B+eY=";
12 fetchSubmodules = true;
13 };
14
15 nativeBuildInputs = [ cmake gperf ];
16 buildInputs = [ openssl zlib ];
17
18 meta = with lib; {
19 description = "Telegram Bot API server";
20 homepage = "https://github.com/tdlib/telegram-bot-api";
21 license = licenses.boost;
22 maintainers = with maintainers; [ Anillc ];
23 platforms = platforms.all;
24 };
25}