Merge pull request #196849 from wegank/clutter-darwin

authored by Sandro and committed by GitHub 28dad38c 44e28c02

+130 -31
+1 -1
pkgs/development/libraries/clutter-gst/default.nix
··· 31 31 license = lib.licenses.lgpl2Plus; 32 32 33 33 maintainers = with lib.maintainers; [ ]; 34 - platforms = lib.platforms.gnu ++ lib.platforms.linux; # arbitrary choice 34 + platforms = lib.platforms.unix; 35 35 }; 36 36 }
+18 -3
pkgs/development/libraries/clutter-gtk/default.nix
··· 1 - { fetchurl, lib, stdenv, pkg-config, meson, ninja 2 - , gobject-introspection, clutter, gtk3, gnome }: 1 + { fetchurl 2 + , lib 3 + , stdenv 4 + , pkg-config 5 + , meson 6 + , ninja 7 + , gobject-introspection 8 + , clutter 9 + , gtk3 10 + , gnome 11 + }: 3 12 4 13 let 5 14 pname = "clutter-gtk"; ··· 19 28 propagatedBuildInputs = [ clutter gtk3 ]; 20 29 nativeBuildInputs = [ meson ninja pkg-config gobject-introspection ]; 21 30 31 + postPatch = '' 32 + # ld: malformed 32-bit x.y.z version number: =1 33 + substituteInPlace meson.build \ 34 + --replace "host_system == 'darwin'" "false" 35 + ''; 36 + 22 37 postBuild = "rm -rf $out/share/gtk-doc"; 23 38 24 39 passthru = { ··· 33 48 homepage = "http://www.clutter-project.org/"; 34 49 license = lib.licenses.lgpl2Plus; 35 50 maintainers = with lib.maintainers; [ ]; 36 - platforms = lib.platforms.gnu ++ lib.platforms.linux; # arbitrary choice 51 + platforms = lib.platforms.unix; 37 52 }; 38 53 }
+51 -9
pkgs/development/libraries/clutter/default.nix
··· 1 - { lib, stdenv, fetchurl, pkg-config, libGLU, libGL, libX11, libXext, libXfixes 2 - , libXdamage, libXcomposite, libXi, libxcb, cogl, pango, atk, json-glib 3 - , gobject-introspection, gtk3, gnome, libinput, libgudev, libxkbcommon 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , pkg-config 5 + , libGLU 6 + , libGL 7 + , libX11 8 + , libXext 9 + , libXfixes 10 + , libXdamage 11 + , libXcomposite 12 + , libXi 13 + , libxcb 14 + , cogl 15 + , pango 16 + , atk 17 + , json-glib 18 + , gobject-introspection 19 + , gtk3 20 + , gnome 21 + , libinput 22 + , libgudev 23 + , libxkbcommon 4 24 }: 5 25 6 26 let ··· 19 39 20 40 buildInputs = [ gtk3 ]; 21 41 nativeBuildInputs = [ pkg-config gobject-introspection ]; 22 - propagatedBuildInputs = 23 - [ libX11 libGL libGLU libXext libXfixes libXdamage libXcomposite libXi cogl pango 24 - atk json-glib gobject-introspection libxcb libinput libgudev libxkbcommon 25 - ]; 42 + propagatedBuildInputs = [ 43 + cogl 44 + pango 45 + atk 46 + json-glib 47 + gobject-introspection 48 + ] ++ lib.optionals (!stdenv.isDarwin) [ 49 + libX11 50 + libGL 51 + libGLU 52 + libXext 53 + libXfixes 54 + libXdamage 55 + libXcomposite 56 + libXi 57 + libxcb 58 + libinput 59 + libgudev 60 + libxkbcommon 61 + ]; 26 62 27 - configureFlags = [ "--enable-introspection" ]; # needed by muffin AFAIK 63 + configureFlags = [ 64 + "--enable-introspection" # needed by muffin AFAIK 65 + ] ++ lib.optionals stdenv.isDarwin [ 66 + "--without-x" 67 + "--enable-x11-backend=no" 68 + "--enable-quartz-backend=yes" 69 + ]; 28 70 29 71 #doCheck = true; # no tests possible without a display 30 72 ··· 57 99 homepage = "http://www.clutter-project.org/"; 58 100 59 101 maintainers = with lib.maintainers; [ ]; 60 - platforms = lib.platforms.mesaPlatforms; 102 + platforms = lib.platforms.unix; 61 103 }; 62 104 }
+57 -17
pkgs/development/libraries/cogl/default.nix
··· 1 - { lib, stdenv, fetchurl, fetchpatch, pkg-config, libGL, glib, gdk-pixbuf, xorg, libintl 2 - , pangoSupport ? true, pango, cairo, gobject-introspection, wayland, gnome 3 - , mesa, automake, autoconf 4 - , gstreamerSupport ? true, gst_all_1 }: 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , fetchpatch 5 + , pkg-config 6 + , libGL 7 + , glib 8 + , gdk-pixbuf 9 + , xorg 10 + , libintl 11 + , pangoSupport ? true 12 + , pango 13 + , cairo 14 + , gobject-introspection 15 + , wayland 16 + , gnome 17 + , mesa 18 + , automake 19 + , autoconf 20 + , gstreamerSupport ? true 21 + , gst_all_1 22 + , harfbuzz 23 + , OpenGL 24 + }: 5 25 6 26 stdenv.mkDerivation rec { 7 27 pname = "cogl"; ··· 35 55 36 56 configureFlags = [ 37 57 "--enable-introspection" 58 + ] ++ lib.optionals (!stdenv.isDarwin) [ 38 59 "--enable-kms-egl-platform" 39 60 "--enable-wayland-egl-platform" 40 61 "--enable-wayland-egl-server" 41 - ] ++ lib.optional gstreamerSupport "--enable-cogl-gst" 42 - ++ lib.optionals (!stdenv.isDarwin) [ "--enable-gles1" "--enable-gles2" ]; 62 + "--enable-gles1" 63 + "--enable-gles2" 64 + ] ++ lib.optionals stdenv.isDarwin [ 65 + "--disable-glx" 66 + "--without-x" 67 + ] ++ lib.optionals gstreamerSupport [ 68 + "--enable-cogl-gst" 69 + ]; 43 70 44 71 # TODO: this shouldn't propagate so many things 45 72 # especially not gobject-introspection 46 - propagatedBuildInputs = with xorg; [ 47 - glib gdk-pixbuf gobject-introspection wayland mesa 48 - libGL libXrandr libXfixes libXcomposite libXdamage 49 - ] 50 - ++ lib.optionals gstreamerSupport [ gst_all_1.gstreamer 51 - gst_all_1.gst-plugins-base ]; 73 + propagatedBuildInputs = [ 74 + glib 75 + gdk-pixbuf 76 + gobject-introspection 77 + ] ++ lib.optionals stdenv.isLinux [ 78 + wayland 79 + mesa 80 + libGL 81 + xorg.libXrandr 82 + xorg.libXfixes 83 + xorg.libXcomposite 84 + xorg.libXdamage 85 + ] ++ lib.optionals gstreamerSupport [ 86 + gst_all_1.gstreamer 87 + gst_all_1.gst-plugins-base 88 + ]; 52 89 53 - buildInputs = lib.optionals pangoSupport [ pango cairo ]; 90 + buildInputs = lib.optionals pangoSupport [ pango cairo harfbuzz ] 91 + ++ lib.optionals stdenv.isDarwin [ OpenGL ]; 54 92 55 - COGL_PANGO_DEP_CFLAGS 56 - = lib.optionalString (stdenv.isDarwin && pangoSupport) 57 - "-I${pango.dev}/include/pango-1.0 -I${cairo.dev}/include/cairo"; 93 + COGL_PANGO_DEP_CFLAGS = toString (lib.optionals (stdenv.isDarwin && pangoSupport) [ 94 + "-I${pango.dev}/include/pango-1.0" 95 + "-I${cairo.dev}/include/cairo" 96 + "-I${harfbuzz.dev}/include/harfbuzz" 97 + ]); 58 98 59 99 #doCheck = true; # all tests fail (no idea why) 60 100 ··· 76 116 render without stepping on each other's toes. 77 117 ''; 78 118 79 - platforms = platforms.mesaPlatforms; 119 + platforms = platforms.unix; 80 120 license = with licenses; [ mit bsd3 publicDomain sgi-b-20 ]; 81 121 }; 82 122 }
+3 -1
pkgs/top-level/all-packages.nix
··· 18462 18462 18463 18463 coercer = callPackage ../tools/security/coercer { }; 18464 18464 18465 - cogl = callPackage ../development/libraries/cogl { }; 18465 + cogl = callPackage ../development/libraries/cogl { 18466 + inherit (darwin.apple_sdk.frameworks) OpenGL; 18467 + }; 18466 18468 18467 18469 coin3d = callPackage ../development/libraries/coin3d { }; 18468 18470