36 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv, fetchgit, pkgconfig, pidgin, json-glib, glib, http-parser, sqlite, olm, libgcrypt } :
2016-08-01 15:17:54 -04:00
let
version = "2018-08-03";
2016-08-01 15:17:54 -04:00
in
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
2019-08-13 21:52:01 +00:00
pname = "purple-matrix-unstable";
inherit version;
2016-08-01 15:17:54 -04:00
src = fetchgit {
url = "https://github.com/matrix-org/purple-matrix";
rev = "5a7166a3f54f85793c6b60662f8d12196aeaaeb0";
sha256 = "0ph0s24b37d1c50p8zbzgf4q2xns43a8v6vk85iz633wdd72zsa0";
2016-08-01 15:17:54 -04:00
};
# glib-2.62 deprecations
NIX_CFLAGS_COMPILE = [ "-DGLIB_DISABLE_DEPRECATION_WARNINGS" ];
2016-08-01 15:17:54 -04:00
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ pidgin json-glib glib http-parser sqlite olm libgcrypt ];
2016-08-01 15:17:54 -04:00
hardeningDisable = [ "fortify" ]; # upstream compiles with -O0
2016-08-01 15:17:54 -04:00
makeFlags = [
2018-12-21 22:09:10 +01:00
"PLUGIN_DIR_PURPLE=${placeholder "out"}/lib/purple-2"
"DATA_ROOT_DIR_PURPLE=${placeholder "out"}/share"
];
meta = with stdenv.lib; {
2016-08-01 15:17:54 -04:00
homepage = https://github.com/matrix-org/purple-matrix;
description = "Matrix support for Pidgin / libpurple";
license = licenses.gpl2;
maintainers = with maintainers; [ symphorien ];
2016-08-01 15:17:54 -04:00
};
}