2021-06-14 21:24:08 +00:00
|
|
|
{ mkDerivation
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, withGstreamer ? true
|
|
|
|
, gst_all_1
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "qxmpp";
|
2023-05-02 06:31:33 +00:00
|
|
|
version = "1.5.5";
|
2021-06-14 21:24:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "qxmpp-project";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-05-02 06:31:33 +00:00
|
|
|
sha256 = "sha256-V24VlfXR1Efk5kzxHWh/OIZzx4L/jLoXyjoNjtDDyTY=";
|
2021-06-14 21:24:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
] ++ lib.optionals withGstreamer [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
buildInputs = lib.optionals withGstreamer (with gst_all_1; [
|
|
|
|
gstreamer
|
|
|
|
gst-plugins-bad
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
|
|
|
]);
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_EXAMPLES=false"
|
|
|
|
"-DBUILD_TESTS=false"
|
|
|
|
] ++ lib.optionals withGstreamer [
|
|
|
|
"-DWITH_GSTREAMER=ON"
|
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|