@@ -0,0 +1,27 @@
1+{ lib, stdenv, fetchFromGitHub, pidgin, glib, json-glib, protobuf, protobufc }:
2+
3+stdenv.mkDerivation {
4+ pname = "purple-googlechat";
5+ version = "unstable-2021-10-18";
6+
7+ src = fetchFromGitHub {
8+ owner = "EionRobb";
9+ repo = "purple-googlechat";
10+ rev = "56ba7f79883eca67d37629d365776f6c0b40abdc";
11+ sha256 = "sha256-iTYVgYI9+6rqqBl5goeEAXpK8FgHDv0MmPsV/82reWA=";
12+ };
13+
14+ nativeBuildInputs = [ protobufc ];
15+ buildInputs = [ pidgin glib json-glib protobuf ];
16+
17+ PKG_CONFIG_PURPLE_PLUGINDIR = "${placeholder "out"}/lib/purple-2";
18+ PKG_CONFIG_PURPLE_DATADIR = "${placeholder "out"}/share";
19+
20+ meta = with lib; {
21+ homepage = "https://github.com/EionRobb/purple-googlechat";
22+ description = "Native Google Chat support for pidgin";
23+ license = licenses.gpl3Plus;
24+ platforms = platforms.linux;
25+ maintainers = with maintainers; [ dtzWill ];
26+ };
27+}