2007-02-28 17:30:50 +00:00
|
|
|
{ input, stdenv, fetchurl, pkgconfig, perl, perlXMLParser, glib, gtk
|
|
|
|
, GConf, startupnotification, libXinerama, libXrandr, libXcursor
|
2009-04-01 11:46:26 +00:00
|
|
|
, gettext, intltool
|
2007-02-28 17:52:41 +00:00
|
|
|
|
|
|
|
, enableCompositor ? false
|
|
|
|
, libXcomposite ? null, libXfixes ? null, libXdamage ? null, libcm ? null
|
2007-02-28 17:30:50 +00:00
|
|
|
}:
|
|
|
|
|
2007-02-28 17:52:41 +00:00
|
|
|
assert enableCompositor ->
|
|
|
|
libXcomposite != null && libXfixes != null && libXdamage != null && libcm != null;
|
|
|
|
|
2007-02-28 17:30:50 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (input) name src;
|
2007-02-28 17:52:41 +00:00
|
|
|
|
2007-02-28 17:30:50 +00:00
|
|
|
buildInputs = [
|
|
|
|
pkgconfig perl perlXMLParser glib gtk GConf startupnotification
|
2009-04-01 11:46:26 +00:00
|
|
|
libXinerama libXrandr libXcursor gettext intltool
|
2007-02-28 17:52:41 +00:00
|
|
|
]
|
2009-04-01 11:46:26 +00:00
|
|
|
++ stdenv.lib.optionals enableCompositor [libXcomposite libXfixes libXdamage libcm];
|
2007-02-28 17:52:41 +00:00
|
|
|
|
2009-04-01 11:46:26 +00:00
|
|
|
configureFlags = ''
|
2007-02-28 17:52:41 +00:00
|
|
|
${if enableCompositor then "--enable-compositor" else ""}
|
2009-04-01 11:46:26 +00:00
|
|
|
'';
|
2007-02-28 17:30:50 +00:00
|
|
|
}
|