mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
88eb04c0dc
making it possible to build metacity and gconf-editor patch provided by Christoph Herbst svn path=/nixpkgs/trunk/; revision=15681
25 lines
800 B
Nix
25 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 ""}
|
|
'';
|
|
}
|