nixpkgs/pkgs/applications/networking/instant-messengers/pidgin-plugins/purple-matrix/default.nix

39 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, pkg-config, pidgin, json-glib, glib, http-parser, sqlite, olm, libgcrypt } :
2016-08-01 19:17:54 +00:00
stdenv.mkDerivation rec {
2019-08-13 21:52:01 +00:00
pname = "purple-matrix-unstable";
version = "2019-06-06";
2016-08-01 19:17:54 +00:00
src = fetchFromGitHub {
owner = "matrix-org";
repo = "purple-matrix";
rev = "4494ba22b479917f0b1f96a3019792d3d75bcff1";
sha256 = "1gjm0z4wa5vi9x1xk43rany5pffrwg958n180ahdj9a7sa8a4hpm";
2016-08-01 19:17:54 +00:00
};
2019-10-30 11:34:47 +00:00
NIX_CFLAGS_COMPILE = builtins.toString [
# glib-2.62 deprecations
"-DGLIB_DISABLE_DEPRECATION_WARNINGS"
# override "-O0 -Werror" set by build system
"-O3" "-Wno-error"
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ pidgin json-glib glib http-parser sqlite olm libgcrypt ];
2016-08-01 19:17:54 +00:00
makeFlags = [
2018-12-21 21:09:10 +00:00
"PLUGIN_DIR_PURPLE=${placeholder "out"}/lib/purple-2"
"DATA_ROOT_DIR_PURPLE=${placeholder "out"}/share"
];
buildFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ]; # fix build on darwin
meta = with lib; {
homepage = "https://github.com/matrix-org/purple-matrix";
2016-08-01 19:17:54 +00:00
description = "Matrix support for Pidgin / libpurple";
license = licenses.gpl2;
platforms = platforms.unix;
maintainers = with maintainers; [ symphorien ];
2016-08-01 19:17:54 +00:00
};
}