2015-01-05 08:22:32 +01:00
|
|
|
{ stdenv, fetchurl, automake, autoconf, pkgconfig, glib, openssl, expat
|
2015-09-20 20:38:03 +02:00
|
|
|
, ncurses, libotr, curl, libstrophe, readline, libuuid
|
2015-01-04 21:23:15 +01:00
|
|
|
|
2015-01-05 08:28:20 +01:00
|
|
|
, autoAwaySupport ? false, libXScrnSaver ? null, libX11 ? null
|
|
|
|
, notifySupport ? false, libnotify ? null, gdk_pixbuf ? null
|
2015-01-05 08:22:32 +01:00
|
|
|
}:
|
|
|
|
|
2015-01-05 08:28:20 +01:00
|
|
|
assert autoAwaySupport -> libXScrnSaver != null && libX11 != null;
|
|
|
|
assert notifySupport -> libnotify != null && gdk_pixbuf != null;
|
2015-01-05 08:22:32 +01:00
|
|
|
|
|
|
|
with stdenv.lib;
|
2015-01-05 00:46:10 +01:00
|
|
|
|
2015-01-04 21:23:15 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "profanity-${version}";
|
2015-09-20 20:38:03 +02:00
|
|
|
version = "0.4.7";
|
2015-01-04 21:23:15 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.profanity.im/profanity-${version}.tar.gz";
|
2015-09-20 20:38:03 +02:00
|
|
|
sha256 = "1p8ixvxacvf63r6lnf6iwlyz4pgiyp6widna1h2l2jg8kw14wb5h";
|
2015-01-04 21:23:15 +01:00
|
|
|
};
|
|
|
|
|
2015-01-05 08:22:32 +01:00
|
|
|
buildInputs = [
|
2015-09-20 20:38:03 +02:00
|
|
|
automake autoconf pkgconfig readline libuuid
|
2015-01-05 08:22:32 +01:00
|
|
|
glib openssl expat ncurses libotr curl libstrophe
|
2015-01-05 08:28:20 +01:00
|
|
|
] ++ optionals autoAwaySupport [ libXScrnSaver libX11 ]
|
|
|
|
++ optionals notifySupport [ libnotify gdk_pixbuf ];
|
2015-01-04 21:23:15 +01:00
|
|
|
|
|
|
|
preConfigure = "sh bootstrap.sh";
|
|
|
|
|
|
|
|
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 08:22:32 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.devhell ];
|
2015-01-04 21:23:15 +01:00
|
|
|
};
|
|
|
|
}
|