treewide: mesa_noglu, mesa_drivers, libGL_driver -> mesa

Just use mesa for these to be more clear. Move these to aliases.nix
This commit is contained in:
Matthew Bauer 2019-05-28 15:09:34 -04:00
parent f7e2bb8cff
commit 263f5891b6
35 changed files with 79 additions and 82 deletions

View File

@ -11,9 +11,9 @@ let
videoDrivers = config.services.xserver.videoDrivers; videoDrivers = config.services.xserver.videoDrivers;
makePackage = p: pkgs.buildEnv { makePackage = p: pkgs.buildEnv {
name = "mesa-drivers+txc-${p.mesa_drivers.version}"; name = "mesa-drivers+txc-${p.mesa.version}";
paths = paths =
[ p.mesa_drivers [ p.mesa.drivers
(if cfg.s3tcSupport then p.libtxc_dxtn else p.libtxc_dxtn_s2tc) (if cfg.s3tcSupport then p.libtxc_dxtn else p.libtxc_dxtn_s2tc)
]; ];
}; };

View File

@ -1,10 +1,10 @@
{ stdenv, fetchurl, libjpeg, libexif, libungif, libtiff, libpng, libwebp, libdrm { stdenv, fetchurl, libjpeg, libexif, libungif, libtiff, libpng, libwebp, libdrm
, pkgconfig, freetype, fontconfig, which, imagemagick, curl, sane-backends, libXpm , pkgconfig, freetype, fontconfig, which, imagemagick, curl, sane-backends, libXpm
, epoxy, poppler, mesa_noglu, lirc }: , epoxy, poppler, mesa, lirc }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "fbida-2.14"; name = "fbida-2.14";
src = fetchurl { src = fetchurl {
url = "http://dl.bytesex.org/releases/fbida/${name}.tar.gz"; url = "http://dl.bytesex.org/releases/fbida/${name}.tar.gz";
sha256 = "0f242mix20rgsqz1llibhsz4r2pbvx6k32rmky0zjvnbaqaw1dwm"; sha256 = "0f242mix20rgsqz1llibhsz4r2pbvx6k32rmky0zjvnbaqaw1dwm";
@ -14,9 +14,9 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
libexif libjpeg libpng libungif freetype fontconfig libtiff libwebp libexif libjpeg libpng libungif freetype fontconfig libtiff libwebp
imagemagick curl sane-backends libdrm libXpm epoxy poppler lirc imagemagick curl sane-backends libdrm libXpm epoxy poppler lirc
mesa_noglu mesa
]; ];
makeFlags = [ "prefix=$(out)" "verbose=yes" "STRIP=" "JPEG_VER=62" ]; makeFlags = [ "prefix=$(out)" "verbose=yes" "STRIP=" "JPEG_VER=62" ];
patchPhase = '' patchPhase = ''

View File

@ -54,7 +54,7 @@ let
# Higan // TODO: "higan is not available for the x86_64 architecture" # Higan // TODO: "higan is not available for the x86_64 architecture"
# Libretro # Libretro
fluidsynth hidapi mesa_noglu libdrm fluidsynth hidapi mesa libdrm
# MAME # MAME
qt48 fontconfig SDL2_ttf qt48 fontconfig SDL2_ttf

View File

@ -15,7 +15,7 @@
, usbredirSupport ? spiceSupport, usbredir , usbredirSupport ? spiceSupport, usbredir
, xenSupport ? false, xen , xenSupport ? false, xen
, cephSupport ? false, ceph , cephSupport ? false, ceph
, openGLSupport ? sdlSupport, mesa_noglu, epoxy, libdrm , openGLSupport ? sdlSupport, mesa, epoxy, libdrm
, virglSupport ? openGLSupport, virglrenderer , virglSupport ? openGLSupport, virglrenderer
, smbdSupport ? false, samba , smbdSupport ? false, samba
, hostCpuOnly ? false , hostCpuOnly ? false
@ -66,7 +66,7 @@ stdenv.mkDerivation rec {
++ optionals stdenv.isLinux [ alsaLib libaio libcap_ng libcap attr ] ++ optionals stdenv.isLinux [ alsaLib libaio libcap_ng libcap attr ]
++ optionals xenSupport [ xen ] ++ optionals xenSupport [ xen ]
++ optionals cephSupport [ ceph ] ++ optionals cephSupport [ ceph ]
++ optionals openGLSupport [ mesa_noglu epoxy libdrm ] ++ optionals openGLSupport [ mesa epoxy libdrm ]
++ optionals virglSupport [ virglrenderer ] ++ optionals virglSupport [ virglrenderer ]
++ optionals smbdSupport [ samba ]; ++ optionals smbdSupport [ samba ];

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, meson, ninja, pkgconfig, wayland, libGL, mesa_noglu, libxkbcommon, cairo, libxcb { stdenv, fetchurl, meson, ninja, pkgconfig, wayland, libGL, mesa, libxkbcommon, cairo, libxcb
, libXcursor, xlibsWrapper, udev, libdrm, mtdev, libjpeg, pam, dbus, libinput, libevdev , libXcursor, xlibsWrapper, udev, libdrm, mtdev, libjpeg, pam, dbus, libinput, libevdev
, colord, lcms2 , colord, lcms2
, pango ? null, libunwind ? null, freerdp ? null, vaapi ? null, libva ? null , pango ? null, libunwind ? null, freerdp ? null, vaapi ? null, libva ? null
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ meson ninja pkgconfig ]; nativeBuildInputs = [ meson ninja pkgconfig ];
buildInputs = [ buildInputs = [
wayland libGL mesa_noglu libxkbcommon cairo libxcb libXcursor xlibsWrapper udev libdrm wayland libGL mesa libxkbcommon cairo libxcb libXcursor xlibsWrapper udev libdrm
mtdev libjpeg pam dbus libinput libevdev pango libunwind freerdp vaapi libva mtdev libjpeg pam dbus libinput libevdev pango libunwind freerdp vaapi libva
libwebp wayland-protocols libwebp wayland-protocols
colord lcms2 colord lcms2

View File

@ -144,7 +144,7 @@ rec {
libidn libidn
tbb tbb
wayland wayland
mesa_noglu mesa
libxkbcommon libxkbcommon
flac flac

View File

@ -3,7 +3,7 @@
, libsndfile, xorg, libdrm, libxkbcommon, udev, utillinux, bullet, luajit , libsndfile, xorg, libdrm, libxkbcommon, udev, utillinux, bullet, luajit
, python27Packages, openjpeg, doxygen, expat, harfbuzz, jbig2dec, librsvg , python27Packages, openjpeg, doxygen, expat, harfbuzz, jbig2dec, librsvg
, dbus, alsaLib, poppler, ghostscript, libraw, libspectre, xineLib, libwebp , dbus, alsaLib, poppler, ghostscript, libraw, libspectre, xineLib, libwebp
, curl, libinput, systemd, mesa_noglu, writeText, gtk3 , curl, libinput, systemd, mesa, writeText, gtk3
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig gtk3 ]; nativeBuildInputs = [ pkgconfig gtk3 ];
buildInputs = [ openssl zlib lz4 freetype fontconfig SDL libGL mesa_noglu buildInputs = [ openssl zlib lz4 freetype fontconfig SDL libGL mesa
giflib libpng libtiff glib gst_all_1.gstreamer gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good giflib libpng libtiff glib gst_all_1.gstreamer gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good
gst_all_1.gst-libav libpulseaudio libsndfile xorg.libXcursor xorg.xorgproto gst_all_1.gst-libav libpulseaudio libsndfile xorg.libXcursor xorg.xorgproto
xorg.libX11 udev systemd ]; xorg.libX11 udev systemd ];

View File

@ -1,6 +1,6 @@
{ stdenv, fetchurl, meson, ninja, pkgconfig, gettext, efl, { stdenv, fetchurl, meson, ninja, pkgconfig, gettext, efl,
xcbutilkeysyms, libXrandr, libXdmcp, libxcb, libffi, pam, alsaLib, xcbutilkeysyms, libXrandr, libXdmcp, libxcb, libffi, pam, alsaLib,
luajit, bzip2, libpthreadstubs, gdbm, libcap, mesa_noglu, luajit, bzip2, libpthreadstubs, gdbm, libcap, mesa,
xkeyboard_config, pcre xkeyboard_config, pcre
}: }:
@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
libpthreadstubs libpthreadstubs
gdbm gdbm
pcre pcre
mesa_noglu mesa
xkeyboard_config xkeyboard_config
] ++ ] ++
stdenv.lib.optionals stdenv.isLinux [ libcap ]; stdenv.lib.optionals stdenv.isLinux [ libcap ];
@ -46,7 +46,7 @@ stdenv.mkDerivation rec {
# installer to try to do this, the file $out/e-wrappers.nix is created, # installer to try to do this, the file $out/e-wrappers.nix is created,
# containing the needed configuration for wrapping those programs. It # containing the needed configuration for wrapping those programs. It
# can be used in the enlightenment module. The idea is: # can be used in the enlightenment module. The idea is:
# #
# 1) rename the original binary adding the extension .orig # 1) rename the original binary adding the extension .orig
# 2) wrap the renamed binary at /run/wrappers/bin/ # 2) wrap the renamed binary at /run/wrappers/bin/
# 3) create a new symbolic link using the original binary name (in the # 3) create a new symbolic link using the original binary name (in the

View File

@ -1,9 +1,9 @@
{ stdenv, fetchurl, pkgconfig, efl, pcre, mesa_noglu, makeWrapper }: { stdenv, fetchurl, pkgconfig, efl, pcre, mesa, makeWrapper }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "ephoto-${version}"; name = "ephoto-${version}";
version = "1.5"; version = "1.5";
src = fetchurl { src = fetchurl {
url = "http://www.smhouston.us/stuff/${name}.tar.gz"; url = "http://www.smhouston.us/stuff/${name}.tar.gz";
sha256 = "09kraa5zz45728h2dw1ssh23b87j01bkfzf977m48y1r507sy3vb"; sha256 = "09kraa5zz45728h2dw1ssh23b87j01bkfzf977m48y1r507sy3vb";
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ nativeBuildInputs = [
(pkgconfig.override { vanilla = true; }) (pkgconfig.override { vanilla = true; })
mesa_noglu.dev # otherwise pkg-config does not find gbm mesa.dev # otherwise pkg-config does not find gbm
makeWrapper makeWrapper
]; ];

View File

@ -1,9 +1,9 @@
{ stdenv, fetchurl, meson, ninja, pkgconfig, efl, gst_all_1, pcre, mesa_noglu, wrapGAppsHook }: { stdenv, fetchurl, meson, ninja, pkgconfig, efl, gst_all_1, pcre, mesa, wrapGAppsHook }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "rage-${version}"; name = "rage-${version}";
version = "0.3.0"; version = "0.3.0";
src = fetchurl { src = fetchurl {
url = "http://download.enlightenment.org/rel/apps/rage/${name}.tar.xz"; url = "http://download.enlightenment.org/rel/apps/rage/${name}.tar.xz";
sha256 = "0gfzdd4jg78bkmj61yg49w7bzspl5m1nh6agqgs8k7qrq9q26xqy"; sha256 = "0gfzdd4jg78bkmj61yg49w7bzspl5m1nh6agqgs8k7qrq9q26xqy";
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
meson meson
ninja ninja
(pkgconfig.override { vanilla = true; }) (pkgconfig.override { vanilla = true; })
mesa_noglu.dev mesa.dev
wrapGAppsHook wrapGAppsHook
]; ];

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, meson, ninja, pkgconfig, efl, pcre, mesa_noglu, makeWrapper }: { stdenv, fetchurl, meson, ninja, pkgconfig, efl, pcre, mesa, makeWrapper }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "terminology"; pname = "terminology";
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
efl efl
pcre pcre
mesa_noglu mesa
]; ];
meta = { meta = {

View File

@ -1,5 +1,5 @@
{ llvmPackages, lib, fetchFromGitHub, cmake { llvmPackages, lib, fetchFromGitHub, cmake
, libpng, libjpeg, mesa_noglu, eigen, openblas , libpng, libjpeg, mesa, eigen, openblas
}: }:
let let
@ -37,7 +37,7 @@ in llvmPackages.stdenv.mkDerivation {
# Note: only openblas and not atlas part of this Nix expression # Note: only openblas and not atlas part of this Nix expression
# see pkgs/development/libraries/science/math/liblapack/3.5.0.nix # see pkgs/development/libraries/science/math/liblapack/3.5.0.nix
# to get a hint howto setup atlas instead of openblas # to get a hint howto setup atlas instead of openblas
buildInputs = [ llvmPackages.llvm libpng libjpeg mesa_noglu eigen openblas ]; buildInputs = [ llvmPackages.llvm libpng libjpeg mesa eigen openblas ];
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];

View File

@ -1,6 +1,6 @@
{ stdenv, fetchurl, fetchpatch, pkgconfig, libGL, glib, gdk_pixbuf, xorg, libintl { stdenv, fetchurl, fetchpatch, pkgconfig, libGL, glib, gdk_pixbuf, xorg, libintl
, pangoSupport ? true, pango, cairo, gobject-introspection, wayland, gnome3 , pangoSupport ? true, pango, cairo, gobject-introspection, wayland, gnome3
, mesa_noglu , mesa
, gstreamerSupport ? true, gst_all_1 }: , gstreamerSupport ? true, gst_all_1 }:
let let
@ -44,7 +44,7 @@ in stdenv.mkDerivation rec {
++ stdenv.lib.optionals (!stdenv.isDarwin) [ "--enable-gles1" "--enable-gles2" ]; ++ stdenv.lib.optionals (!stdenv.isDarwin) [ "--enable-gles1" "--enable-gles2" ];
propagatedBuildInputs = with xorg; [ propagatedBuildInputs = with xorg; [
glib gdk_pixbuf gobject-introspection wayland mesa_noglu glib gdk_pixbuf gobject-introspection wayland mesa
libGL libXrandr libXfixes libXcomposite libXdamage libGL libXrandr libXfixes libXcomposite libXdamage
] ]
++ stdenv.lib.optionals gstreamerSupport [ gst_all_1.gstreamer ++ stdenv.lib.optionals gstreamerSupport [ gst_all_1.gstreamer

View File

@ -2,7 +2,7 @@
, expat, glib, cairo, pango, gdk_pixbuf, atk, at-spi2-atk, gobject-introspection, fribidi , expat, glib, cairo, pango, gdk_pixbuf, atk, at-spi2-atk, gobject-introspection, fribidi
, xorg, epoxy, json-glib, libxkbcommon, gmp, gnome3, autoreconfHook, gsettings-desktop-schemas , xorg, epoxy, json-glib, libxkbcommon, gmp, gnome3, autoreconfHook, gsettings-desktop-schemas
, x11Support ? stdenv.isLinux , x11Support ? stdenv.isLinux
, waylandSupport ? stdenv.isLinux, mesa_noglu, wayland, wayland-protocols , waylandSupport ? stdenv.isLinux, mesa, wayland, wayland-protocols
, xineramaSupport ? stdenv.isLinux , xineramaSupport ? stdenv.isLinux
, cupsSupport ? stdenv.isLinux, cups ? null , cupsSupport ? stdenv.isLinux, cups ? null
, AppKit, Cocoa , AppKit, Cocoa
@ -48,7 +48,7 @@ stdenv.mkDerivation rec {
[ expat glib cairo pango gdk_pixbuf atk at-spi2-atk gsettings-desktop-schemas fribidi [ expat glib cairo pango gdk_pixbuf atk at-spi2-atk gsettings-desktop-schemas fribidi
libXrandr libXrender libXcomposite libXi libXcursor libSM libICE ] libXrandr libXrender libXcomposite libXi libXcursor libSM libICE ]
++ optional stdenv.isDarwin Cocoa # explicitly propagated, always needed ++ optional stdenv.isDarwin Cocoa # explicitly propagated, always needed
++ optionals waylandSupport [ mesa_noglu wayland wayland-protocols ] ++ optionals waylandSupport [ mesa wayland wayland-protocols ]
++ optional xineramaSupport libXinerama ++ optional xineramaSupport libXinerama
++ optional cupsSupport cups; ++ optional cupsSupport cups;
#TODO: colord? #TODO: colord?

View File

@ -1,5 +1,5 @@
{ stdenv, lib, fetchurl, libX11, pkgconfig, libXext, libdrm, libXfixes, wayland, libffi { stdenv, lib, fetchurl, libX11, pkgconfig, libXext, libdrm, libXfixes, wayland, libffi
, libGL, libGL_driver , libGL, mesa
, minimal ? false, libva1-minimal , minimal ? false, libva1-minimal
}: }:
@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
configureFlags = configureFlags =
# Add FHS paths for non-NixOS applications. # Add FHS paths for non-NixOS applications.
[ "--with-drivers-path=${libGL_driver.driverLink}/lib/dri:/usr/lib/dri:/usr/lib32/dri" ] ++ [ "--with-drivers-path=${mesa.drivers.driverLink}/lib/dri:/usr/lib/dri:/usr/lib32/dri" ] ++
lib.optionals (!minimal) [ "--enable-glx" ]; lib.optionals (!minimal) [ "--enable-glx" ];
installFlags = [ "dummy_drv_video_ladir=$(out)/lib/dri" ]; installFlags = [ "dummy_drv_video_ladir=$(out)/lib/dri" ];

View File

@ -1,6 +1,6 @@
{ stdenv, lib, fetchFromGitHub, autoreconfHook, pkgconfig { stdenv, lib, fetchFromGitHub, autoreconfHook, pkgconfig
, libXext, libdrm, libXfixes, wayland, libffi, libX11 , libXext, libdrm, libXfixes, wayland, libffi, libX11
, libGL, libGL_driver , libGL, mesa
, minimal ? false, libva-minimal , minimal ? false, libva-minimal
}: }:
@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
configureFlags = [ configureFlags = [
# Add FHS paths for non-NixOS applications. # Add FHS paths for non-NixOS applications.
"--with-drivers-path=${libGL_driver.driverLink}/lib/dri:/usr/lib/dri:/usr/lib32/dri" "--with-drivers-path=${mesa.drivers.driverLink}/lib/dri:/usr/lib/dri:/usr/lib32/dri"
] ++ lib.optionals (!minimal) [ "--enable-glx" ]; ] ++ lib.optionals (!minimal) [ "--enable-glx" ];
installFlags = [ installFlags = [

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, xorg, libGL_driver }: { stdenv, fetchurl, pkgconfig, xorg, mesa }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libvdpau-${version}"; name = "libvdpau-${version}";
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ xorg.libX11 ]; propagatedBuildInputs = [ xorg.libX11 ];
configureFlags = stdenv.lib.optional stdenv.isLinux configureFlags = stdenv.lib.optional stdenv.isLinux
"--with-module-dir=${libGL_driver.driverLink}/lib/vdpau"; "--with-module-dir=${mesa.drivers.driverLink}/lib/vdpau";
NIX_LDFLAGS = if stdenv.isDarwin then "-lX11" else null; NIX_LDFLAGS = if stdenv.isDarwin then "-lX11" else null;

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, unzip, mesa_noglu, libX11 }: { stdenv, fetchurl, unzip, mesa, libX11 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "soil"; name = "soil";
@ -8,8 +8,8 @@ stdenv.mkDerivation rec {
sha256 = "00gpwp9dldzhsdhksjvmbhsd2ialraqbv6v6dpikdmpncj6mnc52"; sha256 = "00gpwp9dldzhsdhksjvmbhsd2ialraqbv6v6dpikdmpncj6mnc52";
}; };
buildInputs = [ unzip mesa_noglu libX11 ]; buildInputs = [ unzip mesa libX11 ];
sourceRoot = "Simple OpenGL Image Library/projects/makefile"; sourceRoot = "Simple OpenGL Image Library/projects/makefile";
preBuild = "mkdir obj"; preBuild = "mkdir obj";
preInstall = "mkdir -p $out/lib $out/include"; preInstall = "mkdir -p $out/lib $out/include";

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, libGLU, epoxy, libX11, libdrm, mesa_noglu }: { stdenv, fetchurl, pkgconfig, libGLU, epoxy, libX11, libdrm, mesa }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "041agg1d6i8hg250y30f08n3via0hs9rbijxdrfifb8ara805v0m"; sha256 = "041agg1d6i8hg250y30f08n3via0hs9rbijxdrfifb8ara805v0m";
}; };
buildInputs = [ libGLU epoxy libX11 libdrm mesa_noglu ]; buildInputs = [ libGLU epoxy libX11 libdrm mesa ];
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];

View File

@ -1,6 +1,6 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig { stdenv, fetchFromGitHub, cmake, pkgconfig
, wayland, pixman, libxkbcommon, libinput, xcbutilwm, xcbutilimage, libGL , wayland, pixman, libxkbcommon, libinput, xcbutilwm, xcbutilimage, libGL
, libX11, dbus, wayland-protocols, libdrm, mesa_noglu , libX11, dbus, wayland-protocols, libdrm, mesa
, libpthreadstubs, libXdmcp, libXext, libXfixes , libpthreadstubs, libXdmcp, libXext, libXfixes
, withOptionalPackages ? true, zlib, valgrind, doxygen , withOptionalPackages ? true, zlib, valgrind, doxygen
}: }:
@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
wayland pixman libxkbcommon libinput xcbutilwm xcbutilimage libGL wayland pixman libxkbcommon libinput xcbutilwm xcbutilimage libGL
libX11 libXfixes dbus wayland-protocols libX11 libXfixes dbus wayland-protocols
libpthreadstubs libXdmcp libXext libdrm mesa_noglu ] libpthreadstubs libXdmcp libXext libdrm mesa ]
++ stdenv.lib.optionals withOptionalPackages [ zlib valgrind doxygen ]; ++ stdenv.lib.optionals withOptionalPackages [ zlib valgrind doxygen ];
doCheck = true; doCheck = true;

View File

@ -1,6 +1,6 @@
{ stdenv, fetchFromGitHub, fetchpatch, meson, ninja, pkgconfig { stdenv, fetchFromGitHub, fetchpatch, meson, ninja, pkgconfig
, wayland, libGL, wayland-protocols, libinput, libxkbcommon, pixman , wayland, libGL, wayland-protocols, libinput, libxkbcommon, pixman
, xcbutilwm, libX11, libcap, xcbutilimage, xcbutilerrors, mesa_noglu , xcbutilwm, libX11, libcap, xcbutilimage, xcbutilerrors, mesa
, libpng, ffmpeg_4 , libpng, ffmpeg_4
}: }:
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
wayland libGL wayland-protocols libinput libxkbcommon pixman wayland libGL wayland-protocols libinput libxkbcommon pixman
xcbutilwm libX11 libcap xcbutilimage xcbutilerrors mesa_noglu xcbutilwm libX11 libcap xcbutilimage xcbutilerrors mesa
libpng ffmpeg_4 libpng ffmpeg_4
]; ];

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, SDL, zlib, libmpeg2, libmad, libogg, libvorbis, flac, alsaLib { stdenv, fetchurl, SDL, zlib, libmpeg2, libmad, libogg, libvorbis, flac, alsaLib
, libGLSupported , libGLSupported ? stdenv.lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms
, openglSupport ? libGLSupported, libGLU_combined ? null , openglSupport ? libGLSupported, libGLU_combined ? null
}: }:

View File

@ -138,7 +138,7 @@ in buildFHSUserEnv rec {
libidn libidn
tbb tbb
wayland wayland
mesa_noglu mesa
libxkbcommon libxkbcommon
# Other things from runtime # Other things from runtime

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, binutils-unwrapped, scons, gnum4, p7zip, glibc_multi, mesa_noglu { stdenv, fetchurl, binutils-unwrapped, scons, gnum4, p7zip, glibc_multi, mesa
, xorg, libGLU_combined, openal , xorg, libGLU_combined, openal
, lib, makeWrapper, makeDesktopItem }: , lib, makeWrapper, makeDesktopItem }:
@ -27,7 +27,7 @@ in stdenv.mkDerivation {
p7zip scons gnum4 makeWrapper p7zip scons gnum4 makeWrapper
]; ];
buildInputs = [ buildInputs = [
glibc_multi mesa_noglu.dev xorg.libX11.dev openal glibc_multi mesa.dev xorg.libX11.dev openal
xorg.libXext.dev xorg.libXxf86vm.dev xorg.libXext.dev xorg.libXxf86vm.dev
libGLU_combined libGLU_combined
]; ];

View File

@ -51,7 +51,7 @@ stdenv.mkDerivation ((lib.optionalAttrs (buildScript != null) {
++ lib.optionals openclSupport [ pkgs.opencl-headers pkgs.ocl-icd ] ++ lib.optionals openclSupport [ pkgs.opencl-headers pkgs.ocl-icd ]
++ lib.optionals xmlSupport [ pkgs.libxml2 pkgs.libxslt ] ++ lib.optionals xmlSupport [ pkgs.libxml2 pkgs.libxslt ]
++ lib.optionals tlsSupport [ pkgs.openssl pkgs.gnutls ] ++ lib.optionals tlsSupport [ pkgs.openssl pkgs.gnutls ]
++ lib.optionals openglSupport [ pkgs.libGLU_combined pkgs.mesa_noglu.osmesa pkgs.libdrm ] ++ lib.optionals openglSupport [ pkgs.libGLU_combined pkgs.mesa.osmesa pkgs.libdrm ]
++ lib.optionals stdenv.isDarwin (with pkgs.buildPackages.darwin.apple_sdk.frameworks; [ ++ lib.optionals stdenv.isDarwin (with pkgs.buildPackages.darwin.apple_sdk.frameworks; [
CoreServices Foundation ForceFeedback AppKit OpenGL IOKit DiskArbitration Security CoreServices Foundation ForceFeedback AppKit OpenGL IOKit DiskArbitration Security
ApplicationServices AudioToolbox CoreAudio AudioUnit CoreMIDI OpenAL OpenCL Cocoa Carbon ApplicationServices AudioToolbox CoreAudio AudioUnit CoreMIDI OpenAL OpenCL Cocoa Carbon

View File

@ -1,4 +1,4 @@
{ stdenv, fetchgit, autoreconfHook, libdrm, libX11, libGL, mesa_noglu, pkgconfig }: { stdenv, fetchgit, autoreconfHook, libdrm, libX11, libGL, mesa, pkgconfig }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "kmscube-2018-06-17"; name = "kmscube-2018-06-17";
@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
}; };
nativeBuildInputs = [ autoreconfHook pkgconfig ]; nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ libdrm libX11 libGL mesa_noglu ]; buildInputs = [ libdrm libX11 libGL mesa ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Example OpenGL app using KMS/GBM"; description = "Example OpenGL app using KMS/GBM";

View File

@ -1768,7 +1768,7 @@ lib.makeScope newScope (self: with self; {
meta.platforms = stdenv.lib.platforms.unix; meta.platforms = stdenv.lib.platforms.unix;
}) {}; }) {};
xf86videoamdgpu = callPackage ({ stdenv, pkgconfig, fetchurl, xorgproto, mesa_noglu, libGL, libdrm, udev, xorgserver }: stdenv.mkDerivation { xf86videoamdgpu = callPackage ({ stdenv, pkgconfig, fetchurl, xorgproto, mesa, libGL, libdrm, udev, xorgserver }: stdenv.mkDerivation {
name = "xf86-video-amdgpu-19.0.1"; name = "xf86-video-amdgpu-19.0.1";
builder = ./builder.sh; builder = ./builder.sh;
src = fetchurl { src = fetchurl {
@ -1777,7 +1777,7 @@ lib.makeScope newScope (self: with self; {
}; };
hardeningDisable = [ "bindnow" "relro" ]; hardeningDisable = [ "bindnow" "relro" ];
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ xorgproto mesa_noglu libGL libdrm udev xorgserver ]; buildInputs = [ xorgproto mesa libGL libdrm udev xorgserver ];
meta.platforms = stdenv.lib.platforms.unix; meta.platforms = stdenv.lib.platforms.unix;
}) {}; }) {};
@ -1820,7 +1820,7 @@ lib.makeScope newScope (self: with self; {
meta.platforms = stdenv.lib.platforms.unix; meta.platforms = stdenv.lib.platforms.unix;
}) {}; }) {};
xf86videoati = callPackage ({ stdenv, pkgconfig, fetchurl, xorgproto, mesa_noglu, libGL, libdrm, udev, libpciaccess, xorgserver }: stdenv.mkDerivation { xf86videoati = callPackage ({ stdenv, pkgconfig, fetchurl, xorgproto, mesa, libGL, libdrm, udev, libpciaccess, xorgserver }: stdenv.mkDerivation {
name = "xf86-video-ati-19.0.1"; name = "xf86-video-ati-19.0.1";
builder = ./builder.sh; builder = ./builder.sh;
src = fetchurl { src = fetchurl {
@ -1829,7 +1829,7 @@ lib.makeScope newScope (self: with self; {
}; };
hardeningDisable = [ "bindnow" "relro" ]; hardeningDisable = [ "bindnow" "relro" ];
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ xorgproto mesa_noglu libGL libdrm udev libpciaccess xorgserver ]; buildInputs = [ xorgproto mesa libGL libdrm udev libpciaccess xorgserver ];
meta.platforms = stdenv.lib.platforms.unix; meta.platforms = stdenv.lib.platforms.unix;
}) {}; }) {};

View File

@ -36,7 +36,7 @@ $pcMap{"uuid"} = "libuuid";
$pcMap{"libudev"} = "udev"; $pcMap{"libudev"} = "udev";
$pcMap{"gl"} = "libGL"; $pcMap{"gl"} = "libGL";
$pcMap{"GL"} = "libGL"; $pcMap{"GL"} = "libGL";
$pcMap{"gbm"} = "mesa_noglu"; $pcMap{"gbm"} = "mesa";
$pcMap{"\$PIXMAN"} = "pixman"; $pcMap{"\$PIXMAN"} = "pixman";
$pcMap{"\$RENDERPROTO"} = "xorgproto"; $pcMap{"\$RENDERPROTO"} = "xorgproto";
$pcMap{"\$DRI3PROTO"} = "xorgproto"; $pcMap{"\$DRI3PROTO"} = "xorgproto";

View File

@ -3,7 +3,7 @@
automake, autoconf, gettext, libiconv, libtool, intltool, mtdev, libevdev, libinput, automake, autoconf, gettext, libiconv, libtool, intltool, mtdev, libevdev, libinput,
freetype, tradcpp, fontconfig, meson, ninja, freetype, tradcpp, fontconfig, meson, ninja,
libGL, spice-protocol, zlib, libGLU, dbus, libunwind, libdrm, libGL, spice-protocol, zlib, libGLU, dbus, libunwind, libdrm,
mesa_noglu, udev, bootstrap_cmds, bison, flex, clangStdenv, autoreconfHook, mesa, udev, bootstrap_cmds, bison, flex, clangStdenv, autoreconfHook,
mcpp, epoxy, openssl, pkgconfig, llvm_6, mcpp, epoxy, openssl, pkgconfig, llvm_6,
cf-private, ApplicationServices, Carbon, Cocoa, Xplugin cf-private, ApplicationServices, Carbon, Cocoa, Xplugin
}: }:
@ -382,7 +382,7 @@ self: super:
}); });
xf86videovmware = super.xf86videovmware.overrideAttrs (attrs: { xf86videovmware = super.xf86videovmware.overrideAttrs (attrs: {
buildInputs = attrs.buildInputs ++ [ mesa_noglu llvm_6 ]; # for libxatracker buildInputs = attrs.buildInputs ++ [ mesa llvm_6 ]; # for libxatracker
meta = attrs.meta // { meta = attrs.meta // {
platforms = ["i686-linux" "x86_64-linux"]; platforms = ["i686-linux" "x86_64-linux"];
}; };
@ -507,7 +507,7 @@ self: super:
if (!isDarwin) if (!isDarwin)
then { then {
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
buildInputs = commonBuildInputs ++ [ libdrm mesa_noglu ]; buildInputs = commonBuildInputs ++ [ libdrm mesa ];
propagatedBuildInputs = [ libpciaccess epoxy ] ++ commonPropagatedBuildInputs ++ lib.optionals stdenv.isLinux [ propagatedBuildInputs = [ libpciaccess epoxy ] ++ commonPropagatedBuildInputs ++ lib.optionals stdenv.isLinux [
udev udev
]; ];

View File

@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, fetchpatch { stdenv, fetchFromGitHub, fetchpatch
, libX11, libGL, mesa_noglu , libX11, libGL, mesa
, nvidia_x11 ? null , nvidia_x11 ? null
, libglvnd , libglvnd
}: }:
@ -33,7 +33,7 @@ in stdenv.mkDerivation {
makeFlags = [ "LIBDIR=$(out)/lib" makeFlags = [ "LIBDIR=$(out)/lib"
"PRIMUS_libGLa=${aPackage}/lib/libGL.so" "PRIMUS_libGLa=${aPackage}/lib/libGL.so"
"PRIMUS_libGLd=${libGL}/lib/libGL.so" "PRIMUS_libGLd=${libGL}/lib/libGL.so"
"PRIMUS_LOAD_GLOBAL=${mesa_noglu}/lib/libglapi.so" "PRIMUS_LOAD_GLOBAL=${mesa}/lib/libglapi.so"
]; ];
installPhase = '' installPhase = ''

View File

@ -1,6 +1,6 @@
{stdenv, fetchurl, fetchpatch {stdenv, fetchurl, fetchpatch
, freeglut, ghostscriptX, imagemagick, fftw , freeglut, ghostscriptX, imagemagick, fftw
, boehmgc, libGLU, libGL, mesa_noglu, ncurses, readline, gsl, libsigsegv , boehmgc, libGLU, libGL, mesa, ncurses, readline, gsl, libsigsegv
, python, zlib, perl, texLive, texinfo, xz , python, zlib, perl, texLive, texinfo, xz
, darwin , darwin
}: }:
@ -20,7 +20,7 @@ let
boehmgc ncurses readline gsl libsigsegv boehmgc ncurses readline gsl libsigsegv
python zlib perl texLive texinfo xz ] python zlib perl texLive texinfo xz ]
++ stdenv.lib.optionals stdenv.isLinux ++ stdenv.lib.optionals stdenv.isLinux
[ freeglut libGLU libGL mesa_noglu.osmesa ] [ freeglut libGLU libGL mesa.osmesa ]
++ stdenv.lib.optionals stdenv.isDarwin ++ stdenv.lib.optionals stdenv.isDarwin
(with darwin.apple_sdk.frameworks; [ OpenGL GLUT Cocoa ]) (with darwin.apple_sdk.frameworks; [ OpenGL GLUT Cocoa ])
; ;

View File

@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, pkgconfig, libjpeg, libpng, xorg, libX11, libGL, libdrm, { stdenv, fetchFromGitHub, pkgconfig, libjpeg, libpng, xorg, libX11, libGL, libdrm,
python27, wayland, udev, mesa_noglu, wafHook }: python27, wayland, udev, mesa, wafHook }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "glmark2-${version}"; name = "glmark2-${version}";
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig wafHook ]; nativeBuildInputs = [ pkgconfig wafHook ];
buildInputs = [ buildInputs = [
libjpeg libpng xorg.libxcb libX11 libGL libdrm python27 wayland udev mesa_noglu libjpeg libpng xorg.libxcb libX11 libGL libdrm python27 wayland udev mesa
]; ];
wafConfigureFlags = ["--with-flavors=x11-gl,x11-glesv2,drm-gl,drm-glesv2,wayland-gl,wayland-glesv2"]; wafConfigureFlags = ["--with-flavors=x11-gl,x11-glesv2,drm-gl,drm-glesv2,wayland-gl,wayland-glesv2"];

View File

@ -2,7 +2,7 @@
, glib, libGLU_combined, libpulseaudio, zlib, dbus, fontconfig, freetype , glib, libGLU_combined, libpulseaudio, zlib, dbus, fontconfig, freetype
, gtk3, pango , gtk3, pango
, makeWrapper , python, pythonPackages, lib , makeWrapper , python, pythonPackages, lib
, lsof, curl, libuuid, cups, mesa_drivers , lsof, curl, libuuid, cups, mesa
}: }:
let let
@ -18,7 +18,7 @@ let
# used of both wrappers and libpath # used of both wrappers and libpath
libPath = lib.makeLibraryPath (with xorg; [ libPath = lib.makeLibraryPath (with xorg; [
mesa_drivers mesa.drivers
libGLU_combined libGLU_combined
fontconfig fontconfig
freetype freetype

View File

@ -174,6 +174,7 @@ mapAliases ({
libgnome_keyring = libgnome-keyring; # added 2018-02-25 libgnome_keyring = libgnome-keyring; # added 2018-02-25
libgnome_keyring3 = libgnome-keyring3; # added 2018-02-25 libgnome_keyring3 = libgnome-keyring3; # added 2018-02-25
libgumbo = gumbo; # added 2018-01-21 libgumbo = gumbo; # added 2018-01-21
libGL_driver = mesa.drivers;
libintlOrEmpty = stdenv.lib.optional (!stdenv.isLinux || stdenv.hostPlatform.libc != "glibc") gettext; # added 2018-03-14 libintlOrEmpty = stdenv.lib.optional (!stdenv.isLinux || stdenv.hostPlatform.libc != "glibc") gettext; # added 2018-03-14
libjson_rpc_cpp = libjson-rpc-cpp; # added 2017-02-28 libjson_rpc_cpp = libjson-rpc-cpp; # added 2017-02-28
liblapackWithoutAtlas = liblapack; # added 2018-11-05 liblapackWithoutAtlas = liblapack; # added 2018-11-05
@ -193,6 +194,12 @@ mapAliases ({
man_db = man-db; # added 2016-05 man_db = man-db; # added 2016-05
manpages = man-pages; # added 2015-12-06 manpages = man-pages; # added 2015-12-06
memtest86 = memtest86plus; # added 2019-05-08 memtest86 = memtest86plus; # added 2019-05-08
mesa_noglu = mesa; # added 2019-05-28
# NOTE: 2018-07-12: legacy alias:
# gcsecurity bussiness is done: https://www.theregister.co.uk/2018/02/08/bruce_perens_grsecurity_anti_slapp/
# floating point textures patents are expired,
# so package reduced to alias
mesa_drivers = mesa.drivers;
midoriWrapper = midori; # added 2015-01 midoriWrapper = midori; # added 2015-01
mlt-qt5 = libsForQt5.mlt; # added 2015-12-19 mlt-qt5 = libsForQt5.mlt; # added 2015-12-19
mobile_broadband_provider_info = mobile-broadband-provider-info; # added 2018-02-25 mobile_broadband_provider_info = mobile-broadband-provider-info; # added 2018-02-25

View File

@ -10199,7 +10199,7 @@ in
# Multi-arch "drivers" which we want to build for i686. # Multi-arch "drivers" which we want to build for i686.
driversi686Linux = recurseIntoAttrs { driversi686Linux = recurseIntoAttrs {
inherit (pkgsi686Linux) inherit (pkgsi686Linux)
mesa_drivers mesa
vaapiIntel vaapiIntel
libvdpau-va-gl libvdpau-va-gl
vaapiVdpau vaapiVdpau
@ -12221,7 +12221,7 @@ in
# libGL.so/libEGL.so/... to link agains them. Android NDK provides # libGL.so/libEGL.so/... to link agains them. Android NDK provides
# an OpenGL implementation, we can just use that. # an OpenGL implementation, we can just use that.
libGL = if stdenv.hostPlatform.useAndroidPrebuilt then stdenv libGL = if stdenv.hostPlatform.useAndroidPrebuilt then stdenv
else mesa_noglu.stubs; else mesa.stubs;
# Default libGLU # Default libGLU
libGLU = mesa_glu; libGLU = mesa_glu;
@ -12236,27 +12236,17 @@ in
extraOutputsToInstall = [ "dev" ]; extraOutputsToInstall = [ "dev" ];
}; };
# Default derivation with libGL.so.1 to link into /run/opengl-drivers (if need) mesa = callPackage ../development/libraries/mesa {
libGL_driver = mesa_drivers;
mesa_noglu = callPackage ../development/libraries/mesa {
# 7 is the default, but only on Linux, so keep this for now # 7 is the default, but only on Linux, so keep this for now
llvmPackages = llvmPackages_7; llvmPackages = llvmPackages_7;
inherit (darwin.apple_sdk.frameworks) OpenGL; inherit (darwin.apple_sdk.frameworks) OpenGL;
inherit (darwin.apple_sdk.libs) Xplugin; inherit (darwin.apple_sdk.libs) Xplugin;
}; };
mesa = mesa_noglu;
mesa_glu = callPackage ../development/libraries/mesa-glu { mesa_glu = callPackage ../development/libraries/mesa-glu {
inherit (darwin.apple_sdk.frameworks) ApplicationServices; inherit (darwin.apple_sdk.frameworks) ApplicationServices;
}; };
# NOTE: 2018-07-12: legacy alias:
# gcsecurity bussiness is done: https://www.theregister.co.uk/2018/02/08/bruce_perens_grsecurity_anti_slapp/
# floating point textures patents are expired,
# so package reduced to alias
mesa_drivers = mesa_noglu.drivers;
## End libGL/libGLU/Mesa stuff ## End libGL/libGLU/Mesa stuff
meterbridge = callPackage ../applications/audio/meterbridge { }; meterbridge = callPackage ../applications/audio/meterbridge { };