2021-10-14 19:47:30 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoconf-archive
|
|
|
|
, autoreconfHook
|
|
|
|
, cmocka
|
|
|
|
, curl
|
|
|
|
, expat
|
|
|
|
, expect
|
|
|
|
, glib
|
|
|
|
, glibcLocales
|
2022-03-30 16:20:55 +00:00
|
|
|
, libstrophe
|
2021-10-14 19:47:30 +00:00
|
|
|
, libmicrohttpd
|
|
|
|
, libotr
|
|
|
|
, libuuid
|
|
|
|
, ncurses
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, readline
|
|
|
|
, sqlite
|
2022-05-09 21:45:02 +00:00
|
|
|
, autoAwaySupport ? true, libXScrnSaver, libX11
|
2021-10-14 19:47:30 +00:00
|
|
|
, notifySupport ? true, libnotify, gdk-pixbuf
|
|
|
|
, omemoSupport ? true, libsignal-protocol-c, libgcrypt
|
|
|
|
, pgpSupport ? true, gpgme
|
2022-05-09 21:45:02 +00:00
|
|
|
, pythonPluginSupport ? true, python3
|
|
|
|
, traySupport ? true, gtk3
|
2015-01-05 07:22:32 +00:00
|
|
|
}:
|
|
|
|
|
2015-01-04 20:23:15 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "profanity";
|
2023-08-05 06:11:12 +00:00
|
|
|
version = "0.14.0";
|
2015-01-04 20:23:15 +00:00
|
|
|
|
2018-03-13 15:17:30 +00:00
|
|
|
src = fetchFromGitHub {
|
2019-08-04 15:03:54 +00:00
|
|
|
owner = "profanity-im";
|
2018-03-13 15:17:30 +00:00
|
|
|
repo = "profanity";
|
2019-09-08 23:38:31 +00:00
|
|
|
rev = version;
|
2023-08-05 06:11:12 +00:00
|
|
|
hash = "sha256-u/mp+vtMj602LfrulA+nhLNH8K6sqKIOuPJzhZusVmE=";
|
2015-01-04 20:23:15 +00:00
|
|
|
};
|
|
|
|
|
2020-08-10 09:51:30 +00:00
|
|
|
patches = [
|
|
|
|
./patches/packages-osx.patch
|
|
|
|
];
|
2018-03-13 15:17:30 +00:00
|
|
|
|
2017-10-12 19:26:33 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-02-22 20:55:14 +00:00
|
|
|
nativeBuildInputs = [
|
2021-10-14 19:47:30 +00:00
|
|
|
autoconf-archive
|
|
|
|
autoreconfHook
|
|
|
|
glibcLocales
|
|
|
|
pkg-config
|
2019-02-22 20:55:14 +00:00
|
|
|
];
|
2017-10-12 19:26:33 +00:00
|
|
|
|
2015-01-05 07:22:32 +00:00
|
|
|
buildInputs = [
|
2021-10-14 19:47:30 +00:00
|
|
|
cmocka
|
|
|
|
curl
|
|
|
|
expat
|
|
|
|
expect
|
|
|
|
glib
|
2022-03-30 16:20:55 +00:00
|
|
|
libstrophe
|
2021-10-14 19:47:30 +00:00
|
|
|
libmicrohttpd
|
|
|
|
libotr
|
|
|
|
libuuid
|
|
|
|
ncurses
|
|
|
|
openssl
|
|
|
|
readline
|
|
|
|
sqlite
|
|
|
|
] ++ lib.optionals autoAwaySupport [ libXScrnSaver libX11 ]
|
|
|
|
++ lib.optionals notifySupport [ libnotify gdk-pixbuf ]
|
|
|
|
++ lib.optionals omemoSupport [ libsignal-protocol-c libgcrypt ]
|
|
|
|
++ lib.optionals pgpSupport [ gpgme ]
|
2022-05-09 21:45:02 +00:00
|
|
|
++ lib.optionals pythonPluginSupport [ python3 ]
|
|
|
|
++ lib.optionals traySupport [ gtk3 ];
|
2015-01-04 20:23:15 +00:00
|
|
|
|
2017-10-12 20:11:15 +00:00
|
|
|
# Enable feature flags, so that build fail if libs are missing
|
2021-10-14 19:47:30 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-c-plugins"
|
|
|
|
"--enable-otr"
|
|
|
|
] ++ lib.optionals notifySupport [ "--enable-notifications" ]
|
|
|
|
++ lib.optionals traySupport [ "--enable-icons-and-clipboard" ]
|
|
|
|
++ lib.optionals pgpSupport [ "--enable-pgp" ]
|
|
|
|
++ lib.optionals pythonPluginSupport [ "--enable-python-plugins" ]
|
|
|
|
++ lib.optionals omemoSupport [ "--enable-omemo" ];
|
2017-10-12 20:11:15 +00:00
|
|
|
|
2018-03-13 15:17:30 +00:00
|
|
|
preAutoreconf = ''
|
|
|
|
mkdir m4
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
LC_ALL = "en_US.utf8";
|
|
|
|
|
2021-10-14 19:47:30 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "http://www.profanity.im/";
|
2015-01-04 20:23:15 +00:00
|
|
|
description = "A console based XMPP client";
|
|
|
|
longDescription = ''
|
|
|
|
Profanity is a console based XMPP client written in C using ncurses and
|
|
|
|
libstrophe, inspired by Irssi.
|
|
|
|
'';
|
2015-01-05 07:22:32 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.devhell ];
|
2021-10-14 19:47:30 +00:00
|
|
|
platforms = platforms.unix;
|
2015-01-04 20:23:15 +00:00
|
|
|
};
|
|
|
|
}
|