1 { stdenv, mylibs, pkgconfig, libevent, lua, jansson, openssl, readline, zlib, libconfig }:
2 stdenv.mkDerivation (mylibs.fetchedGithub ./telegram-cli.json // {
3 buildInputs = [ pkgconfig libevent lua jansson openssl readline zlib libconfig ];
5 sed -i -e 's@"/etc/" PROG_NAME "/server.pub"@"'$out'/etc/server.pub"@' main.c
9 install -Dm755 bin/telegram-cli $out/bin/telegram-cli
10 install -Dm644 tg-server.pub $out/etc/server.pub
11 install -Dm644 debian/telegram-cli.8 $out/man/man8/telegram-cli.8