3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/gnome/metacity.nix

26 lines
800 B
Nix
Raw Normal View History

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