forked from mirrors/nixpkgs
88eb04c0dc
making it possible to build metacity and gconf-editor patch provided by Christoph Herbst svn path=/nixpkgs/trunk/; revision=15681
26 lines
800 B
Nix
26 lines
800 B
Nix
{ input, stdenv, fetchurl, pkgconfig, perl, perlXMLParser, glib, gtk
|
|
, GConf, startupnotification, libXinerama, libXrandr, libXcursor
|
|
, gettext, intltool, zenity, gnomedocutils
|
|
|
|
, enableCompositor ? false
|
|
, libXcomposite ? null, libXfixes ? null, libXdamage ? null, libcm ? null
|
|
}:
|
|
|
|
assert enableCompositor ->
|
|
libXcomposite != null && libXfixes != null && libXdamage != null && libcm != null;
|
|
|
|
stdenv.mkDerivation {
|
|
inherit (input) name src;
|
|
|
|
buildInputs = [
|
|
pkgconfig perl perlXMLParser glib gtk GConf startupnotification
|
|
libXinerama libXrandr libXcursor gettext intltool
|
|
zenity gnomedocutils
|
|
]
|
|
++ stdenv.lib.optionals enableCompositor [libXcomposite libXfixes libXdamage libcm];
|
|
|
|
configureFlags = ''
|
|
${if enableCompositor then "--enable-compositor" else ""}
|
|
'';
|
|
}
|