diff --git a/pkgs/applications/networking/instant-messengers/profanity/default.nix b/pkgs/applications/networking/instant-messengers/profanity/default.nix index 2d75bf004b0..bd934b6cf73 100644 --- a/pkgs/applications/networking/instant-messengers/profanity/default.nix +++ b/pkgs/applications/networking/instant-messengers/profanity/default.nix @@ -1,12 +1,12 @@ { stdenv, fetchurl, automake, autoconf, pkgconfig, glib, openssl, expat , ncurses, libotr, curl, libstrophe -, notifySupport ? false, libnotify ? null, libXScrnSaver ? null -, libX11 ? null, gdk_pixbuf ? null +, autoAwaySupport ? false, libXScrnSaver ? null, libX11 ? null +, notifySupport ? false, libnotify ? null, gdk_pixbuf ? null }: -assert notifySupport -> libnotify != null && libXScrnSaver != null - && libX11 != null && gdk_pixbuf != null; +assert autoAwaySupport -> libXScrnSaver != null && libX11 != null; +assert notifySupport -> libnotify != null && gdk_pixbuf != null; with stdenv.lib; @@ -22,7 +22,8 @@ stdenv.mkDerivation rec { buildInputs = [ automake autoconf pkgconfig 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"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9acd92092f9..cc75c84bbba 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10580,7 +10580,8 @@ let procmail = callPackage ../applications/misc/procmail { }; 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 { };