Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 51 lines 936 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 gperf, 7 openssl, 8 zlib, 9 versionCheckHook, 10}: 11 12stdenv.mkDerivation { 13 pname = "telegram-bot-api"; 14 version = "8.2"; 15 16 src = fetchFromGitHub { 17 owner = "tdlib"; 18 repo = "telegram-bot-api"; 19 rev = "fa6706fc8f6e22b3c25b512ede6474613f32b32b"; 20 hash = "sha256-0ra1sL121ksUIhpV738tL3y1gu1csMf0rK95G8ElMuo="; 21 fetchSubmodules = true; 22 }; 23 24 nativeBuildInputs = [ 25 cmake 26 gperf 27 ]; 28 29 buildInputs = [ 30 openssl 31 zlib 32 ]; 33 34 nativeInstallCheckInputs = [ versionCheckHook ]; 35 36 doInstallCheck = true; 37 versionCheckProgramArg = "--version"; 38 39 meta = { 40 description = "Telegram Bot API server"; 41 homepage = "https://github.com/tdlib/telegram-bot-api"; 42 license = lib.licenses.boost; 43 maintainers = with lib.maintainers; [ 44 Anillc 45 Forden 46 nartsiss 47 ]; 48 platforms = lib.platforms.all; 49 mainProgram = "telegram-bot-api"; 50 }; 51}