telegram-purple: init at 2016-03-17

This commit is contained in:
Arseniy Seroka 2016-03-23 19:22:35 +03:00
parent 0e6df91569
commit 61fc93b432
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,38 @@
{ stdenv, fetchgit, pkgconfig, pidgin, libwebp, libgcrypt, gettext } :
let
version = "2016-03-17";
in
stdenv.mkDerivation rec {
name = "telegram-purple-${version}";
src = fetchgit {
url = "https://github.com/majn/telegram-purple";
rev = "ee2a6fb740fe9580336e4af9a153b845bc715927";
sha256 = "10y99rclxbpbmmyiapn4vk1d7yjwmg7v1wb4jlz678qkvcni3nv7";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ pidgin libwebp libgcrypt gettext ];
preConfigure = ''
sed -i "s|/etc/telegram-purple/server.tglpub|$out/lib/pidgin/server.tglpub|g" telegram-purple.c
'';
installPhase = ''
mkdir -p $out/lib/pidgin/
cp bin/*.so $out/lib/pidgin/
cp tg-server.tglpub $out/lib/pidgin/server.tglpub
mkdir -p $out/pixmaps/pidgin/protocols/{16,22,48}
cp imgs/telegram16.png $out/pixmaps/pidgin/protocols/16
cp imgs/telegram22.png $out/pixmaps/pidgin/protocols/22
cp imgs/telegram48.png $out/pixmaps/pidgin/protocols/48
'';
meta = {
homepage = https://github.com/majn/telegram-purple;
description = "Telegram for Pidgin / libpurple";
license = stdenv.lib.licenses.gpl2;
maintainers = stdenv.lib.maintainers.jagajaga;
};
}

View file

@ -13445,6 +13445,8 @@ let
purple-vk-plugin = callPackage ../applications/networking/instant-messengers/pidgin-plugins/purple-vk-plugin { };
telegram-purple = callPackage ../applications/networking/instant-messengers/pidgin-plugins/telegram-purple { };
toxprpl = callPackage ../applications/networking/instant-messengers/pidgin-plugins/tox-prpl { };
pidgin-opensteamworks = callPackage ../applications/networking/instant-messengers/pidgin-plugins/pidgin-opensteamworks { };