2018-02-25 02:23:58 +00:00
|
|
|
{ stdenv, fetchhg, pidgin, glib, json-glib, protobuf, protobufc }:
|
2016-07-17 09:08:43 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "purple-hangouts-hg-${version}";
|
2018-04-12 11:24:21 +00:00
|
|
|
version = "2018-03-28";
|
2016-07-17 09:08:43 +00:00
|
|
|
|
|
|
|
src = fetchhg {
|
|
|
|
url = "https://bitbucket.org/EionRobb/purple-hangouts/";
|
2018-04-12 11:24:21 +00:00
|
|
|
rev = "0e137e6bf9e95c5a0bd282f3ad4a5bd00a6968ab";
|
|
|
|
sha256 = "04vjgz6qyd9ilv1c6n08r45vc683vxs1rgfwhh65pag6q4rbzlb9";
|
2016-07-17 09:08:43 +00:00
|
|
|
};
|
|
|
|
|
2018-02-25 02:23:58 +00:00
|
|
|
buildInputs = [ pidgin glib json-glib protobuf protobufc ];
|
2016-07-17 09:08:43 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 -t $out/lib/pidgin/ libhangouts.so
|
|
|
|
for size in 16 22 24 48; do
|
2016-12-22 02:33:22 +00:00
|
|
|
install -TDm644 hangouts$size.png $out/share/pixmaps/pidgin/protocols/$size/hangouts.png
|
2016-07-17 09:08:43 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|