From 54b037720d8f72c58c6585e86b979edaae3fcae9 Mon Sep 17 00:00:00 2001 From: Benjamin Saunders Date: Sun, 17 Jul 2016 02:08:43 -0700 Subject: [PATCH] purple-hangouts-hg: init at 2016-07-17 --- .../purple-hangouts/default.nix | 29 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/applications/networking/instant-messengers/pidgin-plugins/purple-hangouts/default.nix diff --git a/pkgs/applications/networking/instant-messengers/pidgin-plugins/purple-hangouts/default.nix b/pkgs/applications/networking/instant-messengers/pidgin-plugins/purple-hangouts/default.nix new file mode 100644 index 000000000000..494496e48075 --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/pidgin-plugins/purple-hangouts/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchhg, pidgin, glib, json_glib, protobuf, protobufc }: + +stdenv.mkDerivation rec { + name = "purple-hangouts-hg-${version}"; + version = "2016-07-17"; + + src = fetchhg { + url = "https://bitbucket.org/EionRobb/purple-hangouts/"; + rev = "2c60a5e"; + sha256 = "1m8132ywg9982q3yiqgy1hzm61wkgi590425pp8yk1q03yipd6zb"; + }; + + buildInputs = [ pidgin glib json_glib protobuf protobufc ]; + + installPhase = '' + install -Dm755 -t $out/lib/pidgin/ libhangouts.so + for size in 16 22 24 48; do + install -TDm644 hangouts$size.png $out/pixmaps/pidgin/protocols/$size/hangouts.png + done + ''; + + meta = with stdenv.lib; { + homepage = https://bitbucket.org/EionRobb/purple-hangouts; + description = "Native Hangouts support for pidgin"; + license = licenses.gpl3; + platforms = platforms.linux; + maintainers = with maintainers; [ ralith ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6d606e24612a..f67d78c04e85 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13910,6 +13910,8 @@ in pidginwindowmerge = callPackage ../applications/networking/instant-messengers/pidgin-plugins/window-merge { }; + purple-hangouts = callPackage ../applications/networking/instant-messengers/pidgin-plugins/purple-hangouts { }; + purple-plugin-pack = callPackage ../applications/networking/instant-messengers/pidgin-plugins/purple-plugin-pack { }; purple-vk-plugin = callPackage ../applications/networking/instant-messengers/pidgin-plugins/purple-vk-plugin { };