@ -1,11 +1,15 @@
{ stdenv , fetchurl , automake , autoconf , pkgconfig , glib , openssl , expat , ncurses , libotr , curl , libstrophe ,
libnotifySupport ? false , libnotify ? null , libXScrnSaver ? null , libX11 ? null , gdk_pixbuf ? null } :
{ stdenv , fetchurl , automake , autoconf , pkgconfig , glib , openssl , expat
, ncurses , libotr , curl , libstrophe
assert libnotifySupport -> ( libnotify != null && libXScrnSaver != null && libX11 != null && gdk_pixbuf != null ) ;
, notifySupport ? false , libnotify ? null , libXScrnSaver ? null
, libX11 ? null , gdk_pixbuf ? null
} :
assert notifySupport -> libnotify != null && libXScrnSaver != null
&& libX11 != null && gdk_pixbuf != null ;
with stdenv . lib ;
let
optional = stdenv . lib . optional ;
in
stdenv . mkDerivation rec {
name = " p r o f a n i t y - ${ version } " ;
version = " 0 . 4 . 5 " ;
@ -15,8 +19,10 @@ stdenv.mkDerivation rec {
sha256 = " 0 q z w q x c x f 6 9 5 z 3 g f 9 4 p s d 2 x 6 1 9 v l p 4 h k k j m k r p s l a 1 n s 0 f 6 v 6 d k l " ;
} ;
buildInputs = [ automake autoconf pkgconfig glib openssl expat ncurses libotr curl libstrophe ]
++ optional libnotifySupport [ libnotify libXScrnSaver libX11 gdk_pixbuf ] ;
buildInputs = [
automake autoconf pkgconfig
glib openssl expat ncurses libotr curl libstrophe
] ++ optionals notifySupport [ libnotify libXScrnSaver libX11 gdk_pixbuf ] ;
preConfigure = " s h b o o t s t r a p . s h " ;
@ -27,8 +33,8 @@ stdenv.mkDerivation rec {
libstrophe , inspired by Irssi .
'' ;
homepage = http://profanity.im/ ;
license = stdenv . lib . licenses . gpl3Plus ;
platforms = stdenv . lib . platforms . linux ;
maintainers = [ stdenv . lib . maintainers . devhell ] ;
license = licenses . gpl3Plus ;
platforms = platforms . linux ;
maintainers = [ maintainers . devhell ] ;
} ;
}