2015-01-04 23:46:10 +00:00
|
|
|
{ stdenv, fetchurl, automake, autoconf, pkgconfig, glib, openssl, expat, ncurses, libotr, curl, libstrophe,
|
|
|
|
libnotifySupport ? false, libnotify ? null, libXScrnSaver ? null, libX11 ? null, gdk_pixbuf ? null}:
|
2015-01-04 20:23:15 +00:00
|
|
|
|
2015-01-04 23:46:10 +00:00
|
|
|
assert libnotifySupport -> (libnotify != null && libXScrnSaver != null && libX11 != null && gdk_pixbuf != null);
|
|
|
|
|
|
|
|
let
|
|
|
|
optional = stdenv.lib.optional;
|
|
|
|
in
|
2015-01-04 20:23:15 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "profanity-${version}";
|
|
|
|
version = "0.4.5";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.profanity.im/profanity-${version}.tar.gz";
|
|
|
|
sha256 = "0qzwqxcxf695z3gf94psd2x619vlp4hkkjmkrpsla1ns0f6v6dkl";
|
|
|
|
};
|
|
|
|
|
2015-01-04 23:46:10 +00:00
|
|
|
buildInputs = [ automake autoconf pkgconfig glib openssl expat ncurses libotr curl libstrophe ]
|
|
|
|
++ optional libnotifySupport [ libnotify libXScrnSaver libX11 gdk_pixbuf ];
|
2015-01-04 20:23:15 +00: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/;
|
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2015-01-04 22:42:58 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2015-01-04 20:23:15 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.devhell ];
|
|
|
|
};
|
|
|
|
}
|