1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/desktops/gnome/metacity.nix
Eelco Dolstra 144a7c05b3 * Build metacity with compositing support.
svn path=/nixpkgs/trunk/; revision=8114
2007-02-28 17:52:41 +00:00

25 lines
728 B
Nix

{ input, stdenv, fetchurl, pkgconfig, perl, perlXMLParser, glib, gtk
, GConf, startupnotification, libXinerama, libXrandr, libXcursor
, gettext
, 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
]
++ (if enableCompositor then [libXcomposite libXfixes libXdamage libcm] else []);
configureFlags = "
${if enableCompositor then "--enable-compositor" else ""}
";
}