2021-05-09 17:06:48 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, appstream-glib
|
|
|
|
, desktop-file-utils
|
2022-03-30 09:50:14 +00:00
|
|
|
, itstool
|
2021-05-09 17:06:48 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
2023-12-27 14:17:59 +00:00
|
|
|
, wrapGAppsHook4
|
2021-05-09 17:06:48 +00:00
|
|
|
, evolution-data-server
|
|
|
|
, feedbackd
|
2021-09-11 23:36:16 +00:00
|
|
|
, glibmm
|
2023-11-20 22:00:32 +00:00
|
|
|
, libsecret
|
2022-03-16 21:16:40 +00:00
|
|
|
, gnome-desktop
|
2021-09-11 23:36:16 +00:00
|
|
|
, gspell
|
2023-12-27 14:17:59 +00:00
|
|
|
, gtk4
|
2024-05-23 22:34:02 +00:00
|
|
|
, gtksourceview5
|
2024-03-20 05:47:54 +00:00
|
|
|
, gst_all_1
|
2021-05-09 17:06:48 +00:00
|
|
|
, json-glib
|
|
|
|
, libgcrypt
|
2023-12-27 14:17:59 +00:00
|
|
|
, libadwaita
|
2021-05-09 17:06:48 +00:00
|
|
|
, libphonenumber
|
2021-09-11 23:36:16 +00:00
|
|
|
, modemmanager
|
2021-05-09 17:06:48 +00:00
|
|
|
, olm
|
|
|
|
, pidgin
|
|
|
|
, protobuf
|
|
|
|
, sqlite
|
|
|
|
, plugins ? [ ]
|
|
|
|
}:
|
|
|
|
|
2024-05-23 22:34:02 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-05-09 17:06:48 +00:00
|
|
|
pname = "chatty";
|
2024-07-09 04:32:03 +00:00
|
|
|
version = "0.8.4";
|
2021-05-09 17:06:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
2023-12-27 14:17:59 +00:00
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "World";
|
|
|
|
repo = "Chatty";
|
2024-05-23 22:34:02 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2022-01-25 23:54:18 +00:00
|
|
|
fetchSubmodules = true;
|
2024-07-09 04:32:03 +00:00
|
|
|
hash = "sha256-1CHreTkw1C3tc6vOCG+7Y/u4R/xTFOnlI4mcxjY/alY=";
|
2021-05-09 17:06:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
2022-03-30 09:50:14 +00:00
|
|
|
itstool
|
2021-05-09 17:06:48 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2023-12-27 14:17:59 +00:00
|
|
|
wrapGAppsHook4
|
2021-05-09 17:06:48 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
evolution-data-server
|
|
|
|
feedbackd
|
2021-09-11 23:36:16 +00:00
|
|
|
glibmm
|
2023-11-20 22:00:32 +00:00
|
|
|
libsecret
|
2022-03-16 21:16:40 +00:00
|
|
|
gnome-desktop
|
2021-09-11 23:36:16 +00:00
|
|
|
gspell
|
2023-12-27 14:17:59 +00:00
|
|
|
gtk4
|
2024-05-23 22:34:02 +00:00
|
|
|
gtksourceview5
|
2024-03-20 05:47:54 +00:00
|
|
|
gst_all_1.gstreamer
|
2021-05-09 17:06:48 +00:00
|
|
|
json-glib
|
|
|
|
libgcrypt
|
2023-12-27 14:17:59 +00:00
|
|
|
libadwaita
|
2021-05-09 17:06:48 +00:00
|
|
|
libphonenumber
|
2021-09-11 23:36:16 +00:00
|
|
|
modemmanager
|
2021-05-09 17:06:48 +00:00
|
|
|
olm
|
|
|
|
pidgin
|
|
|
|
protobuf
|
|
|
|
sqlite
|
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
2022-05-06 16:27:35 +00:00
|
|
|
--prefix PURPLE_PLUGIN_PATH : ${lib.escapeShellArg (pidgin.makePluginPath plugins)}
|
2021-05-09 17:06:48 +00:00
|
|
|
${lib.concatMapStringsSep " " (p: p.wrapArgs or "") plugins}
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "XMPP and SMS messaging via libpurple and ModemManager";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "chatty";
|
2023-12-27 14:17:59 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/World/Chatty";
|
2024-05-23 22:34:02 +00:00
|
|
|
changelog = "https://gitlab.gnome.org/World/Chatty/-/blob/${finalAttrs.src.rev}/NEWS";
|
2021-05-09 17:06:48 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2024-04-24 14:08:14 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2021-05-09 17:06:48 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2024-05-23 22:34:02 +00:00
|
|
|
})
|