Merge pull request #125884 from astro/kaidan
This commit is contained in:
commit
0e706475e5
3 changed files with 112 additions and 0 deletions
pkgs
applications/networking/instant-messengers/kaidan
development/libraries/qxmpp
top-level
|
@ -0,0 +1,62 @@
|
|||
{ mkDerivation
|
||||
, lib
|
||||
, fetchFromGitLab
|
||||
, cmake
|
||||
, extra-cmake-modules
|
||||
, pkg-config
|
||||
, qtquickcontrols2
|
||||
, qtmultimedia
|
||||
, qtlocation
|
||||
, qqc2-desktop-style
|
||||
, kirigami2
|
||||
, knotifications
|
||||
, zxing-cpp
|
||||
, qxmpp
|
||||
, gst_all_1
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "kaidan";
|
||||
version = "0.8.0";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "invent.kde.org";
|
||||
owner = "network";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "070njci5zyzahmz3nqyp660chxnqx1mxp31w17syfllvrw403qmg";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake extra-cmake-modules pkg-config ];
|
||||
|
||||
buildInputs = with gst_all_1; [
|
||||
qtquickcontrols2
|
||||
qtmultimedia
|
||||
qtlocation
|
||||
qqc2-desktop-style
|
||||
kirigami2
|
||||
knotifications
|
||||
zxing-cpp
|
||||
qxmpp
|
||||
gstreamer
|
||||
gst-plugins-bad
|
||||
gst-plugins-base
|
||||
gst-plugins-good
|
||||
];
|
||||
postInstall = ''
|
||||
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "User-friendly and modern chat app, using XMPP";
|
||||
homepage = "https://www.kaidan.im";
|
||||
license = with licenses; [
|
||||
gpl3Plus
|
||||
mit
|
||||
asl20
|
||||
cc-by-sa-40
|
||||
];
|
||||
maintainers = with maintainers; [ astro ];
|
||||
platforms = with platforms; linux;
|
||||
};
|
||||
}
|
46
pkgs/development/libraries/qxmpp/default.nix
Normal file
46
pkgs/development/libraries/qxmpp/default.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
{ mkDerivation
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, pkg-config
|
||||
, withGstreamer ? true
|
||||
, gst_all_1
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "qxmpp";
|
||||
version = "1.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "qxmpp-project";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1knpq1jkwk0lxdwczbmzf7qrjvlxba9yr40nbq9s5nqkcx6q1c3i";
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
|
@ -15282,6 +15282,8 @@ in
|
|||
|
||||
qtstyleplugin-kvantum-qt4 = callPackage ../development/libraries/qtstyleplugin-kvantum-qt4 { };
|
||||
|
||||
qxmpp = libsForQt5.callPackage ../development/libraries/qxmpp {};
|
||||
|
||||
gnet = callPackage ../development/libraries/gnet { };
|
||||
|
||||
gnu-config = callPackage ../development/libraries/gnu-config { };
|
||||
|
@ -24774,6 +24776,8 @@ in
|
|||
|
||||
kbibtex = libsForQt5.callPackage ../applications/office/kbibtex { };
|
||||
|
||||
kaidan = libsForQt5.callPackage ../applications/networking/instant-messengers/kaidan { };
|
||||
|
||||
kdeltachat = libsForQt5.callPackage ../applications/networking/instant-messengers/kdeltachat { };
|
||||
|
||||
kdevelop-pg-qt = libsForQt5.callPackage ../applications/editors/kdevelop5/kdevelop-pg-qt.nix { };
|
||||
|
|
Loading…
Reference in a new issue