2007-02-28 17:30:50 +00:00
|
|
|
{ input, stdenv, fetchurl, pkgconfig, perl, perlXMLParser, glib, gtk
|
|
|
|
, GConf, startupnotification, libXinerama, libXrandr, libXcursor
|
|
|
|
, gettext
|
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
|
|
|
|
libXinerama libXrandr libXcursor gettext
|
2007-02-28 17:52:41 +00:00
|
|
|
]
|
|
|
|
++ (if enableCompositor then [libXcomposite libXfixes libXdamage libcm] else []);
|
|
|
|
|
|
|
|
configureFlags = "
|
|
|
|
${if enableCompositor then "--enable-compositor" else ""}
|
|
|
|
";
|
2007-02-28 17:30:50 +00:00
|
|
|
}
|