nixpkgs/pkgs/applications/networking/instant-messengers/profanity/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

104 lines
2.4 KiB
Nix
Raw Normal View History

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
}:
stdenv.mkDerivation rec {
pname = "profanity";
version = "0.14.0";
src = fetchFromGitHub {
2019-08-04 15:03:54 +00:00
owner = "profanity-im";
repo = "profanity";
2019-09-08 23:38:31 +00:00
rev = version;
hash = "sha256-u/mp+vtMj602LfrulA+nhLNH8K6sqKIOuPJzhZusVmE=";
};
patches = [
./patches/packages-osx.patch
];
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
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 ];
# 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" ];
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/";
description = "A console based XMPP client";
longDescription = ''
Profanity is a console based XMPP client written in C using ncurses and
libstrophe, inspired by Irssi.
'';
license = licenses.gpl3Plus;
maintainers = [ maintainers.devhell ];
2021-10-14 19:47:30 +00:00
platforms = platforms.unix;
};
}