nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

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

treewide: transition libGL/libGLU for qt

Also rename mesaSupported to libGLSupported

+25 -25
+3 -3
pkgs/development/libraries/qt-4.x/4.8/default.nix
··· 2 2 , hostPlatform 3 3 , libXrender, libXinerama, libXcursor, libXmu, libXv, libXext 4 4 , libXfixes, libXrandr, libSM, freetype, fontconfig, zlib, libjpeg, libpng 5 - , libmng, which, mesaSupported, mesa, mesa_glu, openssl, dbus, cups, pkgconfig 5 + , libmng, which, libGLSupported, libGL, libGLU, openssl, dbus, cups, pkgconfig 6 6 , libtiff, glib, icu, mysql, postgresql, sqlite, perl, coreutils, libXi 7 7 , buildMultimedia ? stdenv.isLinux, alsaLib, gstreamer, gst-plugins-base 8 8 , buildWebkit ? (stdenv.isLinux || stdenv.isDarwin) ··· 76 76 icu = icu.out; 77 77 libXfixes = libXfixes.out; 78 78 glibc = stdenv.cc.libc.out; 79 - openglDriver = if mesaSupported then mesa.driverLink else "/no-such-path"; 79 + openglDriver = if libGLSupported then libGL.driverLink else "/no-such-path"; 80 80 }) 81 81 (fetchpatch { 82 82 name = "fix-medium-font.patch"; ··· 159 159 [ libXrender libXrandr libXinerama libXcursor libXext libXfixes libXv libXi 160 160 libSM zlib libpng openssl dbus freetype fontconfig glib ] 161 161 # Qt doesn't directly need GLU (just GL), but many apps use, it's small and doesn't remain a runtime-dep if not used 162 - ++ optional mesaSupported mesa_glu 162 + ++ optional libGLSupported libGLU 163 163 ++ optional ((buildWebkit || buildMultimedia) && stdenv.isLinux ) alsaLib 164 164 ++ optionals (buildWebkit || buildMultimedia) [ gstreamer gst-plugins-base ]; 165 165
+2 -2
pkgs/development/libraries/qt-5/5.10/default.nix
··· 18 18 { 19 19 newScope, 20 20 stdenv, fetchurl, makeSetupHook, makeWrapper, 21 - bison, cups ? null, harfbuzz, mesa, perl, 21 + bison, cups ? null, harfbuzz, libGL, perl, 22 22 gstreamer, gst-plugins-base, gtk3, dconf, 23 23 24 24 # options ··· 66 66 qtbase = callPackage ../modules/qtbase.nix { 67 67 inherit (srcs.qtbase) src version; 68 68 patches = patches.qtbase; 69 - inherit bison cups harfbuzz mesa; 69 + inherit bison cups harfbuzz libGL; 70 70 withGtk3 = true; inherit dconf gtk3; 71 71 inherit developerBuild decryptSslTraffic; 72 72 };
+2 -2
pkgs/development/libraries/qt-5/5.6/default.nix
··· 27 27 { 28 28 newScope, 29 29 stdenv, fetchurl, makeSetupHook, makeWrapper, 30 - bison, cups ? null, harfbuzz, mesa, perl, 30 + bison, cups ? null, harfbuzz, libGL, perl, 31 31 gstreamer, gst-plugins-base, 32 32 33 33 # options ··· 74 74 inherit mkDerivation; 75 75 76 76 qtbase = callPackage ../modules/qtbase.nix { 77 - inherit bison cups harfbuzz mesa; 77 + inherit bison cups harfbuzz libGL; 78 78 inherit (srcs.qtbase) src version; 79 79 patches = patches.qtbase; 80 80 inherit developerBuild decryptSslTraffic;
+2 -2
pkgs/development/libraries/qt-5/5.9/default.nix
··· 18 18 { 19 19 newScope, 20 20 stdenv, fetchurl, makeSetupHook, makeWrapper, 21 - bison, cups ? null, harfbuzz, mesa, perl, 21 + bison, cups ? null, harfbuzz, libGL, perl, 22 22 gstreamer, gst-plugins-base, gtk3, dconf, 23 23 24 24 # options ··· 66 66 qtbase = callPackage ../modules/qtbase.nix { 67 67 inherit (srcs.qtbase) src version; 68 68 patches = patches.qtbase; 69 - inherit bison cups harfbuzz mesa; 69 + inherit bison cups harfbuzz libGL; 70 70 withGtk3 = true; inherit dconf gtk3; 71 71 inherit developerBuild decryptSslTraffic; 72 72 };
+7 -7
pkgs/development/libraries/qt-5/modules/qtbase.nix
··· 18 18 withGtk3 ? false, dconf ? null, gtk3 ? null, 19 19 20 20 # options 21 - mesaSupported ? (!stdenv.isDarwin), 22 - mesa, 21 + libGLSupported ? (!stdenv.isDarwin), 22 + libGL, 23 23 buildExamples ? false, 24 24 buildTests ? false, 25 25 developerBuild ? false, ··· 69 69 libX11 libXcomposite libXext libXi libXrender libxcb libxkbcommon xcbutil 70 70 xcbutilimage xcbutilkeysyms xcbutilrenderutil xcbutilwm 71 71 ] 72 - ++ lib.optional mesaSupported mesa 72 + ++ lib.optional libGLSupported libGL 73 73 ); 74 74 75 75 buildInputs = ··· 142 142 # Note on the above: \x27 is a way if including a single-quote 143 143 # character in the sed string arguments. 144 144 else 145 - lib.optionalString mesaSupported 145 + lib.optionalString libGLSupported 146 146 '' 147 147 sed -i mkspecs/common/linux.conf \ 148 - -e "/^QMAKE_INCDIR_OPENGL/ s|$|${mesa.dev or mesa}/include|" \ 149 - -e "/^QMAKE_LIBDIR_OPENGL/ s|$|${mesa.out}/lib|" 148 + -e "/^QMAKE_INCDIR_OPENGL/ s|$|${libGL.dev or libGL}/include|" \ 149 + -e "/^QMAKE_LIBDIR_OPENGL/ s|$|${libGL.out}/lib|" 150 150 '' 151 151 ); 152 152 ··· 208 208 # 10.10 209 209 ] 210 210 else 211 - lib.optional mesaSupported ''-DNIXPKGS_MESA_GL="${mesa.out}/lib/libGL"'' 211 + lib.optional libGLSupported ''-DNIXPKGS_MESA_GL="${libGL.out}/lib/libGL"'' 212 212 ++ lib.optionals withGtk3 213 213 [ 214 214 ''-DNIXPKGS_QGTK3_XDG_DATA_DIRS="${gtk3}/share/gsettings-schemas/${gtk3.name}"''
+9 -9
pkgs/top-level/all-packages.nix
··· 10390 10390 # Default derivation with libGL.so.1 to link into /run/opengl-drivers (if need) 10391 10391 libGL_driver = mesa_drivers; 10392 10392 10393 - mesaSupported = lib.elem system lib.platforms.mesaPlatforms; 10393 + libGLSupported = lib.elem system lib.platforms.mesaPlatforms; 10394 10394 10395 10395 libGLDarwinOr = alternative: if stdenv.isDarwin 10396 10396 then callPackage ../development/libraries/mesa-darwin { ··· 10853 10853 qoauth = callPackage ../development/libraries/qoauth { }; 10854 10854 10855 10855 qt3 = callPackage ../development/libraries/qt-3 { 10856 - openglSupport = mesaSupported; 10856 + openglSupport = libGLSupported; 10857 10857 libpng = libpng12; 10858 10858 }; 10859 10859 ··· 10861 10861 10862 10862 qt48 = callPackage ../development/libraries/qt-4.x/4.8 { 10863 10863 # GNOME dependencies are not used unless gtkStyle == true 10864 - mesa = mesa_noglu; 10865 10864 inherit (pkgs.gnome2) libgnomeui GConf gnome_vfs; 10866 10865 cups = if stdenv.isLinux then cups else null; 10867 10866 10868 10867 # XXX: mariadb doesn't built on fbsd as of nov 2015 10869 10868 mysql = if (!stdenv.isFreeBSD) then mysql else null; 10870 10869 10870 + inherit libGL; 10871 10871 inherit (pkgs.darwin) cf-private libobjc; 10872 10872 inherit (pkgs.darwin.apple_sdk.frameworks) ApplicationServices OpenGL Cocoa AGL; 10873 10873 }; ··· 10892 10892 bison = bison2; # error: too few arguments to function 'int yylex(... 10893 10893 inherit cups; 10894 10894 harfbuzz = harfbuzz-icu; 10895 - mesa = mesa_noglu; 10895 + inherit libGL; 10896 10896 inherit perl; 10897 10897 inherit (gst_all_1) gstreamer gst-plugins-base; 10898 10898 }); ··· 10906 10906 bison = bison2; # error: too few arguments to function 'int yylex(... 10907 10907 inherit cups; 10908 10908 harfbuzz = harfbuzz-icu; 10909 - mesa = mesa_noglu; 10909 + inherit libGL; 10910 10910 inherit perl; 10911 10911 inherit (gst_all_1) gstreamer gst-plugins-base; 10912 10912 inherit (gnome3) gtk3 dconf; ··· 10921 10921 bison = bison2; # error: too few arguments to function 'int yylex(... 10922 10922 inherit cups; 10923 10923 harfbuzz = harfbuzz-icu; 10924 - mesa = mesa_noglu; 10924 + inherit libGL; 10925 10925 inherit perl; 10926 10926 inherit (gst_all_1) gstreamer gst-plugins-base; 10927 10927 inherit (gnome3) gtk3 dconf; ··· 11172 11172 schroedinger = callPackage ../development/libraries/schroedinger { }; 11173 11173 11174 11174 SDL = callPackage ../development/libraries/SDL { 11175 - openglSupport = mesaSupported; 11175 + openglSupport = libGLSupported; 11176 11176 alsaSupport = stdenv.isLinux; 11177 11177 x11Support = !stdenv.isCygwin; 11178 11178 pulseaudioSupport = config.pulseaudio or stdenv.isLinux; ··· 11196 11196 SDL_ttf = callPackage ../development/libraries/SDL_ttf { }; 11197 11197 11198 11198 SDL2 = callPackage ../development/libraries/SDL2 { 11199 - openglSupport = mesaSupported; 11199 + openglSupport = libGLSupported; 11200 11200 alsaSupport = stdenv.isLinux; 11201 11201 x11Support = !stdenv.isCygwin; 11202 11202 waylandSupport = stdenv.isLinux; ··· 18887 18887 racer = callPackage ../games/racer { }; 18888 18888 18889 18889 residualvm = callPackage ../games/residualvm { 18890 - openglSupport = mesaSupported; 18890 + openglSupport = libGLSupported; 18891 18891 }; 18892 18892 18893 18893 rftg = callPackage ../games/rftg { };