21 , autoAwaySupport ? true, libXScrnSaver, libX11
22 , notifySupport ? true, libnotify, gdk-pixbuf
23 , omemoSupport ? true, libsignal-protocol-c, libgcrypt, qrencode
24 , pgpSupport ? true, gpgme
25 , pythonPluginSupport ? true, python3
26 , traySupport ? true, gtk3
29 stdenv.mkDerivation rec {
33 src = fetchFromGitHub {
34 owner = "profanity-im";
37 hash = "sha256-u/mp+vtMj602LfrulA+nhLNH8K6sqKIOuPJzhZusVmE=";
41 ./patches/packages-osx.patch
44 enableParallelBuilding = true;
67 ] ++ lib.optionals autoAwaySupport [ libXScrnSaver libX11 ]
68 ++ lib.optionals notifySupport [ libnotify gdk-pixbuf ]
69 ++ lib.optionals omemoSupport [ libsignal-protocol-c libgcrypt qrencode ]
70 ++ lib.optionals pgpSupport [ gpgme ]
71 ++ lib.optionals pythonPluginSupport [ python3 ]
72 ++ lib.optionals traySupport [ gtk3 ];
74 # Enable feature flags, so that build fail if libs are missing
78 ] ++ lib.optionals notifySupport [ "--enable-notifications" ]
79 ++ lib.optionals traySupport [ "--enable-icons-and-clipboard" ]
80 ++ lib.optionals pgpSupport [ "--enable-pgp" ]
81 ++ lib.optionals pythonPluginSupport [ "--enable-python-plugins" ]
82 ++ lib.optionals omemoSupport [ "--enable-omemo" ];
90 LC_ALL = "en_US.utf8";
93 homepage = "http://www.profanity.im/";
94 description = "Console based XMPP client";
95 mainProgram = "profanity";
97 Profanity is a console based XMPP client written in C using ncurses and
98 libstrophe, inspired by Irssi.
100 license = licenses.gpl3Plus;
101 maintainers = [ maintainers.devhell ];
102 platforms = platforms.unix;