Skip to content

Commit

Permalink
treewide: mesa -> libgbm/nothing
Browse files Browse the repository at this point in the history
Mostly replaces mesa with libgbm for things that need libgbm.
Also sometimes just removes mesa entirely, because someone
copy-pasted it a bunch "for libEGL headers" that are actually
in glvnd.
  • Loading branch information
K900 committed Sep 20, 2024
1 parent a1aae45 commit 29db9a0
Show file tree
Hide file tree
Showing 199 changed files with 389 additions and 397 deletions.
4 changes: 2 additions & 2 deletions pkgs/applications/audio/aether-lv2/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, lv2, libX11, libGL, libGLU, mesa, cmake }:
{ lib, stdenv, fetchFromGitHub, lv2, libX11, libGL, libGLU, libgbm, cmake }:

stdenv.mkDerivation rec {
pname = "aether-lv2";
Expand All @@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];

buildInputs = [
lv2 libX11 libGL libGLU mesa
lv2 libX11 libGL libGLU libgbm
];

env.NIX_CFLAGS_COMPILE = toString [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/ninjas2/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, libjack2, libGL, pkg-config, xorg, mesa, libsndfile, libsamplerate }:
{ lib, stdenv, fetchFromGitHub, libjack2, libGL, pkg-config, xorg, libgbm, libsndfile, libsamplerate }:

stdenv.mkDerivation rec {
pname = "ninjas2";
Expand All @@ -18,7 +18,7 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ pkg-config ];
buildInputs = [
libjack2 xorg.libX11 libGL mesa libsndfile libsamplerate
libjack2 xorg.libX11 libGL libgbm libsndfile libsamplerate
];

installPhase = ''
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/sndpeek/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, libsndfile, libglut, alsa-lib, mesa, libGLU, libX11, libXmu
{ lib, stdenv, fetchurl, libsndfile, libglut, alsa-lib, libgbm, libGLU, libX11, libXmu
, libXext, libXi }:

stdenv.mkDerivation rec {
Expand All @@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
buildInputs = [
libglut
alsa-lib
mesa
libgbm
libGLU
libsndfile
libX11
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/spotify/linux.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ fetchurl, lib, stdenv, squashfsTools, xorg, alsa-lib, makeShellWrapper, wrapGAppsHook3, openssl, freetype
, glib, pango, cairo, atk, gdk-pixbuf, gtk3, cups, nspr, nss_latest, libpng, libnotify
, libgcrypt, systemd, fontconfig, dbus, expat, ffmpeg_4, curlWithGnuTls, zlib, zenity
, at-spi2-atk, at-spi2-core, libpulseaudio, libdrm, mesa, libxkbcommon
, at-spi2-atk, at-spi2-core, libpulseaudio, libdrm, libgbm, libxkbcommon
, pname, meta, harfbuzz, libayatana-appindicator, libdbusmenu, libGL
# High-DPI support: Spotify's --force-device-scale-factor argument
# not added if `null`, otherwise, should be a number.
Expand Down Expand Up @@ -49,7 +49,7 @@ let
libpng
libpulseaudio
libxkbcommon
mesa
libgbm
nss_latest
pango
stdenv.cc.cc
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/stone-phaser/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, xorg, cairo, libGL, lv2, libjack2, mesa, pkg-config }:
{ lib, stdenv, fetchFromGitHub, xorg, cairo, libGL, lv2, libjack2, libgbm, pkg-config }:

stdenv.mkDerivation rec {
pname = "stone-phaser";
Expand All @@ -14,7 +14,7 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ pkg-config ];
buildInputs = [
xorg.libX11 cairo libGL lv2 libjack2 mesa
xorg.libX11 cairo libGL lv2 libjack2 libgbm
];

postPatch = ''
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/tidal-hifi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
, libsecret
, libuuid
, libxkbcommon
, mesa
, libgbm
, nss
, pango
, systemd
Expand Down Expand Up @@ -64,7 +64,7 @@ stdenv.mkDerivation (finalAttrs: {
gtk3
pango
systemd
mesa # for libgbm
libgbm
nss
libuuid
libdrm
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/tonelib-metal/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
, alsa-lib
, freetype
, libglvnd
, mesa
, libgbm
, curl
, libXcursor
, libXinerama
Expand All @@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
alsa-lib
freetype
libglvnd
mesa
libgbm
] ++ runtimeDependencies;

runtimeDependencies = map lib.getLib [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/tonelib-noisereducer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
, alsa-lib
, freetype
, libglvnd
, mesa
, libgbm
, curl
, libXcursor
, libXinerama
Expand All @@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
alsa-lib
freetype
libglvnd
mesa
libgbm
] ++ runtimeDependencies;

runtimeDependencies = map lib.getLib [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/blockchains/exodus/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
, libpulseaudio
, at-spi2-core
, libxkbcommon
, mesa
, libgbm
}:

stdenv.mkDerivation (finalAttrs: {
Expand Down Expand Up @@ -86,7 +86,7 @@ stdenv.mkDerivation (finalAttrs: {
systemd
vivaldi-ffmpeg-codecs
libxkbcommon
mesa
libgbm
];
in
''
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/editors/typora/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
, pango
, cairo
, libxkbcommon
, mesa
, libgbm
, expat
, alsa-lib
, buildFHSEnv
Expand Down Expand Up @@ -59,7 +59,7 @@ let
libdrm
pango
cairo
mesa
libgbm
expat
libxkbcommon
]) ++ (with pkgs.xorg; [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/editors/vscode/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
, at-spi2-atk
, autoPatchelfHook
, alsa-lib
, mesa
, libgbm
, nss
, nspr
, xorg
Expand Down Expand Up @@ -157,7 +157,7 @@ in
];

buildInputs = [ libsecret libXScrnSaver libxshmfence ]
++ lib.optionals (!stdenv.isDarwin) [ alsa-lib at-spi2-atk libkrb5 mesa nss nspr systemd xorg.libxkbfile ];
++ lib.optionals (!stdenv.isDarwin) [ alsa-lib at-spi2-atk libkrb5 libgbm nss nspr systemd xorg.libxkbfile ];

runtimeDependencies = lib.optionals stdenv.isLinux [ (lib.getLib systemd) fontconfig.lib libdbusmenu wayland libsecret ];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/emulators/retroarch/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
, libXxf86vm
, makeWrapper
, mbedtls_2
, mesa
, libgbm
, nvidia_cg_toolkit
, pkg-config
, python3
Expand Down Expand Up @@ -88,7 +88,7 @@ stdenv.mkDerivation rec {
libpulseaudio
libv4l
libxkbcommon
mesa
libgbm
udev
];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/emulators/wine/base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ lib.optionalAttrs (buildScript != null) { builder = buildScript; }
])
++ lib.optionals waylandSupport (with pkgs; [
wayland wayland-scanner libxkbcommon wayland-protocols wayland.dev libxkbcommon.dev
mesa # for libgbm
libgbm
])));

inherit patches;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/graphics/avocode/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib, stdenv, makeDesktopItem, fetchurl, unzip
, gdk-pixbuf, glib, gtk3, atk, at-spi2-atk, pango, cairo, freetype, fontconfig, dbus, nss, nspr, alsa-lib, cups, expat, udev, adwaita-icon-theme
, xorg, mozjpeg, makeWrapper, wrapGAppsHook3, libuuid, at-spi2-core, libdrm, mesa, libxkbcommon
, xorg, mozjpeg, makeWrapper, wrapGAppsHook3, libuuid, at-spi2-core, libdrm, libgbm, libxkbcommon
}:

stdenv.mkDerivation rec {
Expand Down Expand Up @@ -47,7 +47,7 @@ stdenv.mkDerivation rec {
libXScrnSaver
libuuid
libdrm
mesa
libgbm
]);

desktopItem = makeDesktopItem {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/graphics/brlcad/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
, libX11
, libXi
, freetype
, mesa
, libgbm
}:

stdenv.mkDerivation rec {
Expand Down Expand Up @@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
libX11
libXi
freetype
mesa
libgbm
];

cmakeFlags = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/graphics/fbida/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
, libepoxy
, pixman
, poppler
, mesa
, libgbm
, lirc
}:

Expand Down Expand Up @@ -62,7 +62,7 @@ stdenv.mkDerivation rec {
pixman
poppler
lirc
mesa
libgbm
];

makeFlags = [ "prefix=$(out)" "verbose=yes" "STRIP=" "JPEG_VER=62" ];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/graphics/figma-linux/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ stdenv.mkDerivation (finalAttrs: {
gtk3
libdrm
libxkbcommon
mesa
libgbm
nspr
nss
pango
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/graphics/seamly2d/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, lib, qtbase, wrapQtAppsHook, fetchFromGitHub,
addDriverRunpath, poppler_utils, qtxmlpatterns, qtsvg, mesa, xvfb-run,
addDriverRunpath, poppler_utils, qtxmlpatterns, qtsvg, libgbm, xvfb-run,
fontconfig, freetype, xorg, qmake, python3, qttools, git
}:
let
Expand All @@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
poppler_utils
qtxmlpatterns
qtsvg
mesa
libgbm
freetype
xorg.libXi
xorg.libXrender
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/1password-gui/linux.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
libxshmfence,
libGL,
libappindicator-gtk3,
mesa,
libgbm,
nspr,
nss,
pango,
Expand Down Expand Up @@ -94,7 +94,7 @@ stdenv.mkDerivation {
libxshmfence
libGL
libappindicator-gtk3
mesa
libgbm
nspr
nss
pango
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/azuredatastudio/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
, libunwind
, libuuid
, libxkbcommon
, mesa
, libgbm
, nspr
, nss
, openssl
Expand Down Expand Up @@ -140,7 +140,7 @@ stdenv.mkDerivation rec {
gdk-pixbuf
glib
gtk3
mesa
libgbm
nss
nspr
libdrm
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/bloodhound/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
, libxcb
, libxkbcommon
, libxshmfence
, mesa
, libgbm
, nspr
, nss
, pango
Expand Down Expand Up @@ -65,7 +65,7 @@ stdenv.mkDerivation (finalAttrs: {
libuuid
libxcb
libxkbcommon
mesa
libgbm
nspr
nss
pango
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/clipqr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
, libXrandr
, libXxf86vm
, makeDesktopItem
, mesa
, libgbm
, pkg-config
, stdenv
}:
Expand Down Expand Up @@ -40,7 +40,7 @@ buildGoModule rec {
libXinerama
libXrandr
libXxf86vm
mesa
libgbm
];

nativeBuildInputs = [
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/misc/lutris/fhsenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ in buildFHSEnv {
# Higan // TODO: "higan is not available for the x86_64 architecture"

# Libretro
fluidsynth hidapi mesa libdrm
fluidsynth hidapi libgbm libdrm

# MAME
fontconfig SDL2_ttf
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/mission-center/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
libGL,
libadwaita,
libdrm,
mesa,
libgbm,
pango,
sqlite,
udev,
Expand Down Expand Up @@ -91,7 +91,7 @@ stdenv.mkDerivation rec {
libGL
libadwaita
libdrm
mesa
libgbm
pango
sqlite
udev
Expand Down
Loading

0 comments on commit 29db9a0

Please sign in to comment.