lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v206 56 lines 1.9 kB view raw
1{ stdenv, fetchurl, pkgconfig, mesa_noglu, glib, gdk_pixbuf, xorg, libintlOrEmpty 2, pangoSupport ? true, pango, cairo, gobjectIntrospection 3, gstreamerSupport ? true, gst_all_1 }: 4 5let 6 ver_maj = "1.20"; 7 ver_min = "0"; 8in 9stdenv.mkDerivation rec { 10 name = "cogl-${ver_maj}.${ver_min}"; 11 12 src = fetchurl { 13 url = "mirror://gnome/sources/cogl/${ver_maj}/${name}.tar.xz"; 14 sha256 = "729e35495829e7d31fafa3358e47b743ba21a2b08ff9b6cd28fb74c0de91192b"; 15 }; 16 17 nativeBuildInputs = [ pkgconfig ]; 18 19 configureFlags = [ 20 "--enable-introspection" 21 "--enable-kms-egl-platform" 22 ] ++ stdenv.lib.optional gstreamerSupport "--enable-cogl-gst" 23 ++ stdenv.lib.optionals (!stdenv.isDarwin) [ "--enable-gles1" "--enable-gles2" ]; 24 25 propagatedBuildInputs = with xorg; [ 26 glib gdk_pixbuf gobjectIntrospection 27 mesa_noglu libXrandr libXfixes libXcomposite libXdamage 28 ] 29 ++ libintlOrEmpty 30 ++ stdenv.lib.optionals gstreamerSupport [ gst_all_1.gstreamer 31 gst_all_1.gst-plugins-base ]; 32 33 buildInputs = stdenv.lib.optionals pangoSupport [ pango cairo ]; 34 35 COGL_PANGO_DEP_CFLAGS 36 = stdenv.lib.optionalString (stdenv.isDarwin && pangoSupport) 37 "-I${pango}/include/pango-1.0 -I${cairo}/include/cairo"; 38 39 NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl"; 40 41 #doCheck = true; # all tests fail (no idea why) 42 43 meta = with stdenv.lib; { 44 description = "A small open source library for using 3D graphics hardware for rendering"; 45 maintainers = with maintainers; [ lovek323 ]; 46 47 longDescription = '' 48 Cogl is a small open source library for using 3D graphics hardware for 49 rendering. The API departs from the flat state machine style of OpenGL 50 and is designed to make it easy to write orthogonal components that can 51 render without stepping on each other's toes. 52 ''; 53 54 platforms = stdenv.lib.platforms.mesaPlatforms; 55 }; 56}