From 61fc93b4327d774661148ac7e0117fa84fea7b8f Mon Sep 17 00:00:00 2001 From: Arseniy Seroka Date: Wed, 23 Mar 2016 19:22:35 +0300 Subject: [PATCH] telegram-purple: init at 2016-03-17 --- .../telegram-purple/default.nix | 38 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/applications/networking/instant-messengers/pidgin-plugins/telegram-purple/default.nix diff --git a/pkgs/applications/networking/instant-messengers/pidgin-plugins/telegram-purple/default.nix b/pkgs/applications/networking/instant-messengers/pidgin-plugins/telegram-purple/default.nix new file mode 100644 index 000000000000..b04673a5d6ad --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/pidgin-plugins/telegram-purple/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3d3f009e294c..7c868f631db7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };