diff --git a/pkgs/applications/networking/instant-messengers/pidgin-plugins/purple-matrix/default.nix b/pkgs/applications/networking/instant-messengers/pidgin-plugins/purple-matrix/default.nix new file mode 100644 index 000000000000..2bf67f44c948 --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/pidgin-plugins/purple-matrix/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchgit, pkgconfig, pidgin, json_glib, glib, http-parser } : + +let + version = "2016-07-11"; +in +stdenv.mkDerivation rec { + name = "purple-matrix-unstable-${version}"; + + src = fetchgit { + url = "https://github.com/matrix-org/purple-matrix"; + rev = "f9d36198a57de1cd1740a3ae11c2ad59b03b724a"; + sha256 = "1mmyvc70gslniphmcpk8sfl6ylik6dnprqghx4n47gsj1sb1cy00"; + }; + + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ pidgin json_glib glib http-parser ]; + + installPhase = '' + install -Dm755 -t $out/lib/pidgin/ libmatrix.so + for size in 16 22 48; do + install -TDm644 matrix-"$size"px.png $out/pixmaps/pidgin/protocols/$size/matrix.png + done + ''; + + meta = { + homepage = https://github.com/matrix-org/purple-matrix; + description = "Matrix support for Pidgin / libpurple"; + license = stdenv.lib.licenses.gpl2; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fe403c387cf7..5ab6296fb42b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14277,6 +14277,8 @@ in purple-hangouts = callPackage ../applications/networking/instant-messengers/pidgin-plugins/purple-hangouts { }; + purple-matrix = callPackage ../applications/networking/instant-messengers/pidgin-plugins/purple-matrix { }; + 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 { };