profanity: Add option for autoAwaySupport.
Actually, two dependencies used for notifySupport are for autoAwaySupport and have nothing to do with notifications, so let's split them apart. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
a313780202
commit
f1f5a7f6c5
@ -1,12 +1,12 @@
|
|||||||
{ stdenv, fetchurl, automake, autoconf, pkgconfig, glib, openssl, expat
|
{ stdenv, fetchurl, automake, autoconf, pkgconfig, glib, openssl, expat
|
||||||
, ncurses, libotr, curl, libstrophe
|
, ncurses, libotr, curl, libstrophe
|
||||||
|
|
||||||
, notifySupport ? false, libnotify ? null, libXScrnSaver ? null
|
, autoAwaySupport ? false, libXScrnSaver ? null, libX11 ? null
|
||||||
, libX11 ? null, gdk_pixbuf ? null
|
, notifySupport ? false, libnotify ? null, gdk_pixbuf ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert notifySupport -> libnotify != null && libXScrnSaver != null
|
assert autoAwaySupport -> libXScrnSaver != null && libX11 != null;
|
||||||
&& libX11 != null && gdk_pixbuf != null;
|
assert notifySupport -> libnotify != null && gdk_pixbuf != null;
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
@ -22,7 +22,8 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [
|
buildInputs = [
|
||||||
automake autoconf pkgconfig
|
automake autoconf pkgconfig
|
||||||
glib openssl expat ncurses libotr curl libstrophe
|
glib openssl expat ncurses libotr curl libstrophe
|
||||||
] ++ optionals notifySupport [ libnotify libXScrnSaver libX11 gdk_pixbuf ];
|
] ++ optionals autoAwaySupport [ libXScrnSaver libX11 ]
|
||||||
|
++ optionals notifySupport [ libnotify gdk_pixbuf ];
|
||||||
|
|
||||||
preConfigure = "sh bootstrap.sh";
|
preConfigure = "sh bootstrap.sh";
|
||||||
|
|
||||||
|
@ -10581,6 +10581,7 @@ let
|
|||||||
|
|
||||||
profanity = callPackage ../applications/networking/instant-messengers/profanity {
|
profanity = callPackage ../applications/networking/instant-messengers/profanity {
|
||||||
notifySupport = config.profanity.notifySupport or true;
|
notifySupport = config.profanity.notifySupport or true;
|
||||||
|
autoAwaySupport = config.profanity.autoAwaySupport or true;
|
||||||
};
|
};
|
||||||
|
|
||||||
pstree = callPackage ../applications/misc/pstree { };
|
pstree = callPackage ../applications/misc/pstree { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user