@@ -1,8 +1,9 @@
11{ stdenv, fetchFromGitHub, fetchurl, pkgconfig
2−, gtk2, gtk3, libXinerama, libSM, libXxf86vm
3−, xorgproto, gstreamer, gst-plugins-base, GConf, setfile
2+, libXinerama, libSM, libXxf86vm
3+, gtk2, GConf ? null, gtk3
4+, xorgproto, gstreamer, gst-plugins-base, setfile
45, libGLSupported ? stdenv.lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms
5−, withMesa ? stdenv.lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms
6+, withMesa ? libGLSupported
67, libGLU ? null, libGL ? null
78, compat24 ? false, compat26 ? true, unicode ? true
89, withGtk2 ? true
@@ -28,9 +29,10 @@ stdenv.mkDerivation rec {
2829 sha256 = "19mqglghjjqjgz4rbybn3qdgn2cz9xc511nq1pvvli9wx2k8syl1";
2930 };
3031
31− buildInputs =
32− [ (if withGtk2 then gtk2 else gtk3) libXinerama libSM libXxf86vm xorgproto gstreamer
33− gst-plugins-base GConf ]
32+ buildInputs = [
33+ libXinerama libSM libXxf86vm xorgproto gstreamer gst-plugins-base
34+ ] ++ optionals withGtk2 [ gtk2 GConf ]
35+ ++ optional (!withGtk2) gtk3
3436 ++ optional withMesa libGLU
3537 ++ optional withWebKit webkitgtk
3638 ++ optionals stdenv.isDarwin [ setfile Carbon Cocoa Kernel QTKit ];