Last active
July 23, 2021 21:36
-
-
Save superherointj/ebb9a1d36df4a5df40d43e4201d8c181 to your computer and use it in GitHub Desktop.
Y3liZXI gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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