Skip to content

Instantly share code, notes, and snippets.

@superherointj
Last active July 23, 2021 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save superherointj/ebb9a1d36df4a5df40d43e4201d8c181 to your computer and use it in GitHub Desktop.
Save superherointj/ebb9a1d36df4a5df40d43e4201d8c181 to your computer and use it in GitHub Desktop.
Y3liZXI gist
/* cole ai */
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
users = {
intj = {
###
home.packages = let
telegram-cli = with pkgs;
stdenv.mkDerivation {
pname = "telegram-cli";
version = "20200106";
src = fetchFromGitHub {
owner = "kenorb-contrib";
repo = "tg";
rev = "e63c9ddcf391de7f131c5d0849713b2fe14fef11";
sha256 = "sha256-wYBPr2b8IOycO9y/CNyGjnRsyGyYl3oiXYtTzwTurVA=";
fetchSubmodules = true;
};
buildInputs = [
jansson
libconfig
libevent
libgcrypt
lua
lua53Packages.lgi
openssl
pkgconfig
python39
readline
zlib
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin/
cp ./bin/telegram-cli $out/bin/telegram-cli
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 ];
};
};
in [
telegram-cli
];
###
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment