about summary refs log tree commit diff
path: root/pkgs/servers/telegram-bot-api/default.nix
blob: d8dc668fb69bc01298751dc28f5b4212e7bf430d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, stdenv, fetchFromGitHub, cmake, gperf, openssl, zlib }:

stdenv.mkDerivation {
  pname = "telegram-bot-api";
  version = "5.7";

  src = fetchFromGitHub {
    repo = "telegram-bot-api";
    owner = "tdlib";
    rev = "c57b04c4c8c4e8d8bb6fdd0bd3bfb5b93b9d8f05";
    sha256 = "sha256-WetzX8GBdwQAnnZjek+W4v+QN1aUFdlvs+Jv6n1B+eY=";
    fetchSubmodules = true;
  };

  nativeBuildInputs = [ cmake gperf ];
  buildInputs = [ openssl zlib ];

  meta = with lib; {
    description = "Telegram Bot API server";
    homepage = "https://github.com/tdlib/telegram-bot-api";
    license = licenses.boost;
    maintainers = with maintainers; [ Anillc ];
    platforms = platforms.all;
    mainProgram = "telegram-bot-api";
  };
}