blob: 2f1d7ca57a57e133202b3138609999fafcf95c2e (
plain) (
tree)
|
|
{ openssl, telethon, python3Packages, mylibs }:
with python3Packages;
buildPythonApplication rec {
format = "other";
pname = "telegramircd";
version = "master";
propagatedBuildInputs = [ telethon aiohttp ConfigArgParse openssl ];
src = (mylibs.fetchedGithub ./telegramircd.json).src;
LD_LIBRARY_PATH = "${openssl.out}/lib";
installPhase = ''
install -D $src/telegramircd.py $out/bin/telegramircd
wrapProgram "$out/bin/telegramircd" \
--prefix LD_LIBRARY_PATH : "${openssl.out}/lib"
install -Dm644 "$src/config" -t "$out/etc/telegramircd/"
'';
}
|