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