diff options
author | lucasew <lucas59356@gmail.com> | 2023-07-15 13:21:47 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-07-16 20:22:04 -0300 |
commit | af38d77aa7d0c9f1ed18528484313fb8b3f76948 (patch) | |
tree | 2975bff77c183691747902413bb84abde99f72c8 /pkgs/applications/networking/instant-messengers/pidgin/pidgin-plugins/purple-matrix | |
parent | 99d417bab0b7dca7268d23c94c9bc0f839444b0a (diff) |
pidgin: put packages in a different scope
Signed-off-by: lucasew <lucas59356@gmail.com>
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/pidgin/pidgin-plugins/purple-matrix')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/pidgin/pidgin-plugins/purple-matrix/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/applications/networking/instant-messengers/pidgin/pidgin-plugins/purple-matrix/default.nix b/pkgs/applications/networking/instant-messengers/pidgin/pidgin-plugins/purple-matrix/default.nix new file mode 100644 index 0000000000000..0b51d172b7462 --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/pidgin/pidgin-plugins/purple-matrix/default.nix @@ -0,0 +1,38 @@ +{ lib, stdenv, fetchFromGitHub, pkg-config, pidgin, json-glib, glib, http-parser, sqlite, olm, libgcrypt } : + +stdenv.mkDerivation rec { + pname = "purple-matrix-unstable"; + version = "2019-06-06"; + + src = fetchFromGitHub { + owner = "matrix-org"; + repo = "purple-matrix"; + rev = "4494ba22b479917f0b1f96a3019792d3d75bcff1"; + sha256 = "1gjm0z4wa5vi9x1xk43rany5pffrwg958n180ahdj9a7sa8a4hpm"; + }; + + env.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 ]; + + makeFlags = [ + "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"; + description = "Matrix support for Pidgin / libpurple"; + license = licenses.gpl2; + platforms = platforms.unix; + maintainers = with maintainers; [ symphorien ]; + }; +} |