{ stdenv, fetchurl, pkgconfig, libpng, libXcomposite, libXfixes , libXdamage, libXrandr, libXinerama, libICE, libSM , startupnotification, libXrender, xextproto, mesa, gtk, libwnck, GConf , libgnome, libgnomeui, metacity , gnomegtk, glib, pango, libglade, libgtkhtml, gtkhtml, libgnomecanvas, libgnomeprint, libgnomeprintui, gnomepanel , librsvg, fuse }: stdenv.mkDerivation { name = "compiz-0.5.0"; src = fetchurl { url = http://xorg.freedesktop.org/archive/individual/app/compiz-0.5.0.tar.gz; sha256 = "1fac5fc37b218k34lpxqlhs7srqxm7jly0hfncs3ghmjmxdlj03y"; }; patches = [ ./tfp-server-extension.patch ]; buildInputs = [ pkgconfig libXrender xextproto gtk libwnck GConf libgnome libgnomeui metacity gnomegtk glib pango libglade libgtkhtml gtkhtml libgnomecanvas libgnomeprint libgnomeprintui gnomepanel librsvg fuse ]; propagatedBuildInputs = [ libpng libXcomposite libXfixes libXdamage libXrandr libXinerama libICE libSM startupnotification mesa GConf ]; configureFlags = "--enable-gtk --enable-fuse --enable-annotate --enable-librsvg"; postFixup = " for i in $out/bin/*; do patchelf --set-rpath /var/state/opengl-driver/lib:$(patchelf --print-rpath $i) $i done "; }