2007-02-28 17:30:50 +00:00
|
|
|
{ input, stdenv, fetchurl, pkgconfig, perl, perlXMLParser, glib, gtk
|
|
|
|
, GConf, startupnotification, libXinerama, libXrandr, libXcursor
|
2009-05-20 18:39:18 +01:00
|
|
|
, gettext, intltool, zenity, gnomedocutils
|
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 12:46:26 +01:00
|
|
|
libXinerama libXrandr libXcursor gettext intltool
|
2009-05-20 18:39:18 +01:00
|
|
|
zenity gnomedocutils
|
2007-02-28 17:52:41 +00:00
|
|
|
]
|
2009-04-01 12:46:26 +01:00
|
|
|
++ stdenv.lib.optionals enableCompositor [libXcomposite libXfixes libXdamage libcm];
|
2007-02-28 17:52:41 +00:00
|
|
|
|
2009-04-01 12:46:26 +01:00
|
|
|
configureFlags = ''
|
2007-02-28 17:52:41 +00:00
|
|
|
${if enableCompositor then "--enable-compositor" else ""}
|
2009-04-01 12:46:26 +01:00
|
|
|
'';
|
2007-02-28 17:30:50 +00:00
|
|
|
}
|