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