2024-10-29 12:35:57 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
gperf,
|
|
|
|
openssl,
|
|
|
|
zlib,
|
|
|
|
}:
|
2022-04-11 15:33:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "telegram-bot-api";
|
2024-11-21 23:16:51 +00:00
|
|
|
version = "8.0";
|
2022-04-11 15:33:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tdlib";
|
2024-11-21 23:16:51 +00:00
|
|
|
repo = "telegram-bot-api";
|
|
|
|
rev = "53e15345b04fcea73b415897f10d7543005044ce";
|
|
|
|
hash = "sha256-OnYoJM2f9+/W4m1Ew9nDQQ/Mk0NnGr1dL5jCvLAXc1c=";
|
2022-04-11 15:33:31 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2024-10-29 12:35:57 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
gperf
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
zlib
|
|
|
|
];
|
2022-04-11 15:33:31 +00:00
|
|
|
|
2024-10-29 12:35:57 +00:00
|
|
|
meta = {
|
2022-04-11 15:33:31 +00:00
|
|
|
description = "Telegram Bot API server";
|
|
|
|
homepage = "https://github.com/tdlib/telegram-bot-api";
|
2024-10-29 12:35:57 +00:00
|
|
|
license = lib.licenses.boost;
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
Anillc
|
|
|
|
Forden
|
2024-11-01 11:20:36 +00:00
|
|
|
nartsiss
|
2024-10-29 12:35:57 +00:00
|
|
|
];
|
|
|
|
platforms = lib.platforms.all;
|
2023-11-23 21:09:35 +00:00
|
|
|
mainProgram = "telegram-bot-api";
|
2022-04-11 15:33:31 +00:00
|
|
|
};
|
|
|
|
}
|