@@ -1,30 +1,32 @@
1−{ stdenv, fetchgit, pkgconfig, pidgin, json-glib, glib, http-parser } :
1+{ stdenv, fetchgit, pkgconfig, pidgin, json-glib, glib, http-parser, sqlite, olm, libgcrypt } :
22
33let
4− version = "2016-07-11";
4+ version = "2018-08-03";
55in
66stdenv.mkDerivation rec {
77 name = "purple-matrix-unstable-${version}";
88
99 src = fetchgit {
1010 url = "https://github.com/matrix-org/purple-matrix";
11− rev = "f9d36198a57de1cd1740a3ae11c2ad59b03b724a";
12− sha256 = "1mmyvc70gslniphmcpk8sfl6ylik6dnprqghx4n47gsj1sb1cy00";
11+ rev = "5a7166a3f54f85793c6b60662f8d12196aeaaeb0";
12+ sha256 = "0ph0s24b37d1c50p8zbzgf4q2xns43a8v6vk85iz633wdd72zsa0";
1313 };
1414
1515 nativeBuildInputs = [ pkgconfig ];
16− buildInputs = [ pidgin json-glib glib http-parser ];
16+ buildInputs = [ pidgin json-glib glib http-parser sqlite olm libgcrypt ];
1717
18− installPhase = ''
19− install -Dm755 -t $out/lib/pidgin/ libmatrix.so
20− for size in 16 22 48; do
21− install -TDm644 matrix-"$size"px.png $out/pixmaps/pidgin/protocols/$size/matrix.png
22− done
23− '';
18+ hardeningDisable = [ "fortify" ]; # upstream compiles with -O0
2419
25− meta = {
20+ makeFlags = [
21+ "DESTDIR=$(out)"
22+ "PLUGIN_DIR_PURPLE=/lib/pidgin/"
23+ "DATA_ROOT_DIR_PURPLE=/share"
24+ ];
25+
26+ meta = with stdenv.lib; {
2627 homepage = https://github.com/matrix-org/purple-matrix;
2728 description = "Matrix support for Pidgin / libpurple";
28− license = stdenv.lib.licenses.gpl2;
29+ license = licenses.gpl2;
30+ maintainers = with maintainers; [ symphorien ];
2931 };
3032}