diff options
author | Nikolay Korotkiy <sikmir@disroot.org> | 2023-02-19 12:18:09 +0300 |
---|---|---|
committer | Nikolay Korotkiy <sikmir@disroot.org> | 2023-02-19 12:18:09 +0300 |
commit | 4813c90dcf8398fcb38ba40e8ee640205b3ec928 (patch) | |
tree | 558ac7535b37973a3608d8c1a4ff5c36d0fdf627 /pkgs/applications/networking/instant-messengers/nchat | |
parent | 03057aa1fd4762137877036e954e62b13c9fae76 (diff) |
nchat: init at 3.17
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/nchat')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/nchat/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/applications/networking/instant-messengers/nchat/default.nix b/pkgs/applications/networking/instant-messengers/nchat/default.nix new file mode 100644 index 0000000000000..43d2d7e374555 --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/nchat/default.nix @@ -0,0 +1,44 @@ +{ lib, stdenv, fetchFromGitHub, cmake, gperf +, file, ncurses, openssl, readline, sqlite, zlib +, AppKit, Cocoa, Foundation +}: + +stdenv.mkDerivation rec { + pname = "nchat"; + version = "3.17"; + + src = fetchFromGitHub { + owner = "d99kris"; + repo = "nchat"; + rev = "v${version}"; + hash = "sha256-BtWKt8paI0gCGSzLYN8x3Yp5MUpwCb2vBGcGQG2aumY="; + }; + + postPatch = '' + substituteInPlace lib/tgchat/ext/td/CMakeLists.txt \ + --replace "get_git_head_revision" "#get_git_head_revision" + ''; + + nativeBuildInputs = [ cmake gperf ]; + + buildInputs = [ + file # for libmagic + ncurses + openssl + readline + sqlite + zlib + ] ++ lib.optional stdenv.isDarwin [ AppKit Cocoa Foundation ]; + + cmakeFlags = [ + "-DHAS_WHATSAPP=OFF" # go module build required + ]; + + meta = with lib; { + description = "Terminal-based chat client with support for Telegram and WhatsApp"; + homepage = "https://github.com/d99kris/nchat"; + license = licenses.mit; + maintainers = with maintainers; [ sikmir ]; + platforms = platforms.unix; + }; +} |