nixpkgs/pkgs/by-name/ka/kaidan/package.nix
2025-06-06 15:25:32 +08:00

79 lines
1.9 KiB
Nix

{
stdenv,
lib,
fetchFromGitLab,
cmake,
extra-cmake-modules,
pkg-config,
kdePackages,
zxing-cpp,
qxmpp,
gst_all_1,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "kaidan";
version = "0.11.0";
src = fetchFromGitLab {
domain = "invent.kde.org";
owner = "network";
repo = "kaidan";
rev = "v${finalAttrs.version}";
hash = "sha256-8pC4vINeKSYY+LlVgCXUtBq9UjraPdTikBOwLBLeQ3Y=";
};
nativeBuildInputs = [
cmake
extra-cmake-modules
pkg-config
kdePackages.wrapQtAppsHook
];
buildInputs = [
kdePackages.kio
kdePackages.kirigami
kdePackages.kirigami-addons
kdePackages.knotifications
kdePackages.kquickimageedit
kdePackages.prison
kdePackages.qtbase
kdePackages.qttools
kdePackages.qtmultimedia
kdePackages.qtlocation
kdePackages.qqc2-desktop-style
kdePackages.sonnet
zxing-cpp
qxmpp
gst_all_1.gstreamer
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-base
(gst_all_1.gst-plugins-good.override { qt6Support = true; })
];
postInstall = ''
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
'';
meta = {
description = "User-friendly and modern chat app, using XMPP";
mainProgram = "kaidan";
longDescription = ''
Kaidan is a user-friendly and modern chat app for every device. It uses
the open communication protocol XMPP (Jabber). Unlike other chat apps,
you are not dependent on one specific service provider.
Kaidan does not have all basic features yet and has still some
stability issues. Current features include audio messages, video
messages, and file sharing.
'';
homepage = "https://www.kaidan.im";
license = with lib.licenses; [
gpl3Plus
mit
asl20
cc-by-sa-40
];
maintainers = with lib.maintainers; [ astro ];
platforms = with lib.platforms; linux;
};
})