mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
telegram-cli: init 20200106
Co-authored-by: @sikmir @SuperSandro2000
This commit is contained in:
parent
688f6217a0
commit
88cb7c8f63
|
@ -0,0 +1,49 @@
|
|||
{ stdenv, fetchFromGitHub, jansson, lib, libconfig, libevent, libgcrypt, lua, lua53Packages
|
||||
, makeWrapper, openssl, pkg-config, python3, readline, zlib
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "telegram-cli";
|
||||
version = "20200106";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kenorb-contrib";
|
||||
repo = "tg";
|
||||
rev = "refs/tags/${version}";
|
||||
sha256 = "sha256-wYBPr2b8IOycO9y/CNyGjnRsyGyYl3oiXYtTzwTurVA=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
jansson
|
||||
libconfig
|
||||
libevent
|
||||
libgcrypt
|
||||
lua
|
||||
lua53Packages.lgi
|
||||
openssl
|
||||
python3
|
||||
readline
|
||||
zlib
|
||||
];
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm755 ./bin/telegram-cli $out/bin/telegram-cli-keyless
|
||||
install -Dm644 ./tg-server.pub -t $out/share/telegram-cli
|
||||
makeWrapper $out/bin/telegram-cli-keyless $out/bin/telegram-cli \
|
||||
--add-flags "-k $out/share/telegram-cli/tg-server.pub"
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Command-line interface for Telegram, that uses readline interface, it's a client implementation of TGL library";
|
||||
downloadPage = "https://github.com/kenorb-contrib/tg";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ superherointj ];
|
||||
};
|
||||
}
|
|
@ -27335,6 +27335,8 @@ in
|
|||
|
||||
tektoncd-cli = callPackage ../applications/networking/cluster/tektoncd-cli { };
|
||||
|
||||
telegram-cli = callPackage ../applications/networking/instant-messengers/telegram/telegram-cli { };
|
||||
|
||||
telepathy-gabble = callPackage ../applications/networking/instant-messengers/telepathy/gabble { };
|
||||
|
||||
telepathy-haze = callPackage ../applications/networking/instant-messengers/telepathy/haze {};
|
||||
|
|
Loading…
Reference in a new issue