2016-12-17 16:34:20 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, openssl, expat, libmesode
|
|
|
|
, ncurses, libotr, curl, readline, libuuid
|
2015-01-04 20:23:15 +00:00
|
|
|
|
2015-01-05 07:28:20 +00:00
|
|
|
, autoAwaySupport ? false, libXScrnSaver ? null, libX11 ? null
|
|
|
|
, notifySupport ? false, libnotify ? null, gdk_pixbuf ? null
|
2015-01-05 07:22:32 +00:00
|
|
|
}:
|
|
|
|
|
2015-01-05 07:28:20 +00:00
|
|
|
assert autoAwaySupport -> libXScrnSaver != null && libX11 != null;
|
|
|
|
assert notifySupport -> libnotify != null && gdk_pixbuf != null;
|
2015-01-05 07:22:32 +00:00
|
|
|
|
|
|
|
with stdenv.lib;
|
2015-01-04 23:46:10 +00:00
|
|
|
|
2015-01-04 20:23:15 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "profanity-${version}";
|
2017-03-01 13:59:45 +00:00
|
|
|
version = "0.5.1";
|
2015-01-04 20:23:15 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.profanity.im/profanity-${version}.tar.gz";
|
2017-03-01 13:59:45 +00:00
|
|
|
sha256 = "1f7ylw3mhhnii52mmk40hyc4kqhpvjdr3hmsplzkdhsfww9kflg3";
|
2015-01-04 20:23:15 +00:00
|
|
|
};
|
|
|
|
|
2015-01-05 07:22:32 +00:00
|
|
|
buildInputs = [
|
2016-12-17 16:34:20 +00:00
|
|
|
pkgconfig readline libuuid libmesode
|
|
|
|
glib openssl expat ncurses libotr curl
|
2015-01-05 07:28:20 +00:00
|
|
|
] ++ optionals autoAwaySupport [ libXScrnSaver libX11 ]
|
|
|
|
++ optionals notifySupport [ libnotify gdk_pixbuf ];
|
2015-01-04 20:23:15 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A console based XMPP client";
|
|
|
|
longDescription = ''
|
|
|
|
Profanity is a console based XMPP client written in C using ncurses and
|
|
|
|
libstrophe, inspired by Irssi.
|
|
|
|
'';
|
|
|
|
homepage = http://profanity.im/;
|
2015-01-05 07:22:32 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.devhell ];
|
2017-03-01 13:59:45 +00:00
|
|
|
updateWalker = true;
|
2015-01-04 20:23:15 +00:00
|
|
|
};
|
|
|
|
}
|