nixpkgs/pkgs/development/libraries/qxmpp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
1.1 KiB
Nix
Raw Normal View History

2021-06-14 21:24:08 +00:00
{ mkDerivation
, lib
, fetchFromGitHub
, cmake
, pkg-config
, withGstreamer ? true
, gst_all_1
, withOmemo ? true
, qca-qt5
, libomemo-c
2021-06-14 21:24:08 +00:00
}:
mkDerivation rec {
pname = "qxmpp";
2024-10-22 23:21:44 +00:00
version = "1.8.2";
2021-06-14 21:24:08 +00:00
src = fetchFromGitHub {
owner = "qxmpp-project";
repo = pname;
rev = "v${version}";
2024-10-22 23:21:44 +00:00
sha256 = "sha256-fxTlxlnqttZZWRkt+vo4MJJz7DR/FMXcOqUv+/nlV18=";
2021-06-14 21:24:08 +00:00
};
nativeBuildInputs = [
cmake
] ++ lib.optionals (withGstreamer || withOmemo) [
2021-06-14 21:24:08 +00:00
pkg-config
];
buildInputs = lib.optionals withGstreamer (with gst_all_1; [
gstreamer
gst-plugins-bad
gst-plugins-base
gst-plugins-good
]) ++ lib.optionals withOmemo [
qca-qt5
libomemo-c
];
2021-06-14 21:24:08 +00:00
cmakeFlags = [
"-DBUILD_EXAMPLES=false"
"-DBUILD_TESTS=false"
] ++ lib.optionals withGstreamer [
"-DWITH_GSTREAMER=ON"
] ++ lib.optionals withOmemo [
"-DBUILD_OMEMO=ON"
2021-06-14 21:24:08 +00:00
];
meta = with lib; {
description = "Cross-platform C++ XMPP client and server library";
homepage = "https://github.com/qxmpp-project/qxmpp";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ astro ];
platforms = with platforms; linux;
};
}