nixpkgs/pkgs/desktops/gnome/metacity.nix
Marc Weber 88eb04c0dc adding zenity to gnome desktop nix expressions
making it possible to build metacity and gconf-editor

patch provided by Christoph Herbst

svn path=/nixpkgs/trunk/; revision=15681
2009-05-20 17:39:18 +00:00

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 ""}
'';
}