1 { lib, stdenv, fetchFromGitHub, cmake, gperf
2 , file, ncurses, openssl, readline, sqlite, zlib
3 , AppKit, Cocoa, Foundation
6 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
14 hash = "sha256-PhvZejtSoDptzoMP5uIe6T0Ws/bQQXVuYH9uoZo3JsI=";
18 substituteInPlace lib/tgchat/ext/td/CMakeLists.txt \
19 --replace "get_git_head_revision" "#get_git_head_revision"
22 nativeBuildInputs = [ cmake gperf ];
31 ] ++ lib.optionals stdenv.isDarwin [ AppKit Cocoa Foundation ];
34 "-DHAS_WHATSAPP=OFF" # go module build required
38 description = "Terminal-based chat client with support for Telegram and WhatsApp";
39 mainProgram = "nchat";
40 homepage = "https://github.com/d99kris/nchat";
41 license = licenses.mit;
42 maintainers = with maintainers; [ sikmir ];
43 platforms = platforms.unix;