nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitLab,
5 appstream-glib,
6 desktop-file-utils,
7 itstool,
8 meson,
9 ninja,
10 pkg-config,
11 wrapGAppsHook4,
12 evolution-data-server,
13 feedbackd,
14 glibmm,
15 libsecret,
16 gnome-desktop,
17 gspell,
18 gtk4,
19 gtksourceview5,
20 gst_all_1,
21 libcmatrix,
22 libadwaita,
23 libphonenumber,
24 modemmanager,
25 pidgin,
26 protobuf,
27 sqlite,
28 plugins ? [ ],
29}:
30
31stdenv.mkDerivation (finalAttrs: {
32 pname = "chatty";
33 version = "0.8.8";
34
35 src = fetchFromGitLab {
36 domain = "gitlab.gnome.org";
37 owner = "World";
38 repo = "Chatty";
39 tag = "v${finalAttrs.version}";
40 hash = "sha256-pLdl44nLRFLH76499JcaKgXRpf51wqFm174gUa7noKc=";
41 };
42
43 nativeBuildInputs = [
44 appstream-glib
45 desktop-file-utils
46 itstool
47 meson
48 ninja
49 pkg-config
50 wrapGAppsHook4
51 ];
52
53 buildInputs = [
54 evolution-data-server
55 feedbackd
56 glibmm
57 libsecret
58 gnome-desktop
59 gspell
60 gtk4
61 gtksourceview5
62 gst_all_1.gstreamer
63 libcmatrix
64 libadwaita
65 libphonenumber
66 modemmanager
67 pidgin
68 protobuf
69 sqlite
70 ];
71
72 preFixup = ''
73 gappsWrapperArgs+=(
74 --prefix PURPLE_PLUGIN_PATH : ${lib.escapeShellArg (pidgin.makePluginPath plugins)}
75 ${lib.concatMapStringsSep " " (p: p.wrapArgs or "") plugins}
76 )
77 '';
78
79 meta = {
80 description = "XMPP and SMS messaging via libpurple and ModemManager";
81 mainProgram = "chatty";
82 homepage = "https://gitlab.gnome.org/World/Chatty";
83 changelog = "https://gitlab.gnome.org/World/Chatty/-/blob/${finalAttrs.src.tag}/NEWS";
84 license = lib.licenses.gpl3Plus;
85 maintainers = with lib.maintainers; [ dotlambda ];
86 platforms = lib.platforms.linux;
87 };
88})