Skip to content

Commit

Permalink
glxinfo: replace with mesa-demos (#324562)
Browse files Browse the repository at this point in the history
  • Loading branch information
K900 authored Aug 28, 2024
2 parents fcda7e4 + d50e23f commit 83d01be
Show file tree
Hide file tree
Showing 18 changed files with 33 additions and 69 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ with lib;
# Firefox for reading the manual.
firefox

glxinfo
mesa-demos
];

}
2 changes: 1 addition & 1 deletion nixos/modules/profiles/graphical.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
# Enable sound in virtualbox appliances.
hardware.pulseaudio.enable = true;

environment.systemPackages = [ pkgs.glxinfo pkgs.firefox ];
environment.systemPackages = [ pkgs.mesa-demos pkgs.firefox ];
}
2 changes: 1 addition & 1 deletion nixos/tests/turbovnc-headless-server.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
nodes.machine = { pkgs, ... }: {

environment.systemPackages = with pkgs; [
glxinfo
mesa-demos
procps # for `pkill`, `pidof` in the test
scrot # for screenshotting Xorg
turbovnc
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/editors/android-studio/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
, file
, fontsConf
, git
, glxinfo
, gnugrep
, gnused
, gnutar
Expand All @@ -30,6 +29,7 @@
, libX11
, libxcb
, libxkbcommon
, mesa-demos
, xcbutilwm
, xcbutilrenderutil
, xcbutilkeysyms
Expand Down Expand Up @@ -107,7 +107,7 @@ let
# For Android emulator
file
glxinfo
mesa-demos
pciutils
setxkbmap
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/misc/corectrl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
, kauth
, libdrm
, hwdata
, glxinfo
, mesa-demos
, polkit
, procps
, pugixml
Expand Down Expand Up @@ -46,7 +46,7 @@ stdenv.mkDerivation rec{
karchive
kauth
libdrm
glxinfo
mesa-demos
polkit
procps
pugixml
Expand All @@ -68,7 +68,7 @@ stdenv.mkDerivation rec{
"-DPOLKIT_POLICY_INSTALL_DIR=${placeholder "out"}/share/polkit-1/actions"
];

runtimeDeps = [ hwdata glxinfo vulkan-tools util-linux procps ];
runtimeDeps = [ hwdata mesa-demos vulkan-tools util-linux procps ];
binPath = lib.makeBinPath runtimeDeps;

dontWrapQtApps = true;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/gpu-viewer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
, wrapGAppsHook4
, gdk-pixbuf
, lsb-release
, glxinfo
, mesa-demos
, vdpauinfo
, clinfo
}:
Expand Down Expand Up @@ -55,7 +55,7 @@ python3.pkgs.buildPythonApplication rec {

postFixup = ''
makeWrapper ${python3.interpreter} $out/bin/gpu-viewer \
--prefix PATH : "${lib.makeBinPath [ clinfo glxinfo lsb-release vdpauinfo vulkan-tools ]}" \
--prefix PATH : "${lib.makeBinPath [ clinfo lsb-release mesa-demos vdpauinfo vulkan-tools ]}" \
--add-flags "$out/share/gpu-viewer/Files/GPUViewer.py" \
--prefix PYTHONPATH : "$PYTHONPATH" \
--chdir "$out/share/gpu-viewer/Files" \
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/lutris/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
, xrandr
, pciutils
, psmisc
, glxinfo
, mesa-demos
, vulkan-tools
, xboxdrv
, pulseaudio
Expand All @@ -58,7 +58,7 @@ let
xrandr
pciutils
psmisc
glxinfo
mesa-demos
vulkan-tools
xboxdrv
pulseaudio
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/playonlinux/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
, fetchurl
, cabextract
, gettext
, glxinfo
, gnupg
, icoutils
, imagemagick
, mesa-demos
, netcat-gnu
, p7zip
, python3
Expand Down Expand Up @@ -37,10 +37,10 @@ let
cabextract
python
gettext
glxinfo
gnupg
icoutils
imagemagick
mesa-demos
netcat-gnu
p7zip
unzip
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/video/kodi/unwrapped.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
, libogg, libvorbis, flac, libxslt
, lzo, libcdio, libmodplug, libass, libbluray, libudfread
, sqlite, libmysqlclient, nasm, gnutls, libva, libdrm
, curl, bzip2, zip, unzip, glxinfo
, curl, bzip2, zip, unzip, mesa-demos
, libcec, libcec_platform, dcadec, libuuid
, libcrossguid, libmicrohttpd
, bluez, doxygen, giflib, glib, harfbuzz, lcms2, libidn2, libpthreadstubs, libtasn1
Expand Down Expand Up @@ -119,7 +119,7 @@ in stdenv.mkDerivation (finalAttrs: {
libogg libvorbis flac libxslt systemd
lzo libcdio libmodplug libass libbluray libudfread
sqlite libmysqlclient avahi lame
curl bzip2 zip unzip glxinfo
curl bzip2 zip unzip mesa-demos
libcec libcec_platform dcadec libuuid
libxcrypt libgcrypt libgpg-error libunistring
libcrossguid libplist
Expand Down Expand Up @@ -229,7 +229,7 @@ in stdenv.mkDerivation (finalAttrs: {
# TODO: figure out which binaries should be wrapped this way and which shouldn't
for p in $(ls --ignore=kodi-send $out/bin/) ; do
wrapProgram $out/bin/$p \
--prefix PATH ":" "${lib.makeBinPath ([ python3Packages.python glxinfo ]
--prefix PATH ":" "${lib.makeBinPath ([ python3Packages.python mesa-demos ]
++ lib.optional x11Support xdpyinfo ++ lib.optional sambaSupport samba)}" \
--prefix LD_LIBRARY_PATH ":" "${lib.makeLibraryPath
([ curl systemd libmad libcec libcec_platform libass ]
Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/pr/prismlauncher/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
gamemode,
glfw,
glfw-wayland-minecraft,
glxinfo,
mesa-demos,
jdk8,
jdk17,
jdk21,
Expand Down Expand Up @@ -134,7 +134,7 @@ symlinkJoin {
++ additionalLibs;

runtimePrograms = [
glxinfo
mesa-demos
pciutils # need lspci
xorg.xrandr # needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128
] ++ additionalPrograms;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/qu/quickemu/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
cdrtools,
curl,
gawk,
glxinfo,
mesa-demos,
gnugrep,
gnused,
jq,
Expand Down Expand Up @@ -49,7 +49,7 @@ let
zsync
]
++ lib.optionals stdenv.isLinux [
glxinfo
mesa-demos
usbutils
xdg-user-dirs
];
Expand Down
8 changes: 4 additions & 4 deletions pkgs/games/steam/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ makeScopeWithSplicing', generateSplicesForMkScope
, stdenv, buildFHSEnv, pkgsi686Linux, glxinfo
, stdenv, buildFHSEnv, pkgsi686Linux, mesa-demos
}:

let
Expand All @@ -14,10 +14,10 @@ let
steam-runtime-wrapped = callPackage ./runtime-wrapped.nix { };
steam = callPackage ./steam.nix { };
steam-fhsenv = callPackage ./fhsenv.nix {
glxinfo-i686 =
mesa-demos-i686 =
if self.steamArch == "amd64"
then pkgsi686Linux.glxinfo
else glxinfo;
then pkgsi686Linux.mesa-demos
else mesa-demos;
steam-runtime-wrapped-i686 =
if self.steamArch == "amd64"
then pkgsi686Linux.steamPackages.steam-runtime-wrapped
Expand Down
4 changes: 2 additions & 2 deletions pkgs/games/steam/fhsenv.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, writeShellScript, buildFHSEnv, steam, glxinfo-i686
{ lib, stdenv, writeShellScript, buildFHSEnv, steam, mesa-demos-i686
, steam-runtime-wrapped, steam-runtime-wrapped-i686 ? null
, extraPkgs ? pkgs: [ ] # extra packages to add to targetPkgs
, extraLibraries ? pkgs: [ ] # extra packages to add to multiPkgs
Expand Down Expand Up @@ -269,7 +269,7 @@ in buildFHSEnv rec {

runScript = writeShellScript "steam-wrapper.sh" ''
if [ -f /etc/NIXOS ]; then # Check only useful on NixOS
${glxinfo-i686}/bin/glxinfo 2>&1 | grep -q Error
${mesa-demos-i686}/bin/glxinfo 2>&1 | grep -q Error
# If there was an error running glxinfo, we know something is wrong with the configuration
if [ $? -eq 0 ]; then
cat <<EOF > /dev/stderr
Expand Down
35 changes: 0 additions & 35 deletions pkgs/tools/graphics/glxinfo/default.nix

This file was deleted.

4 changes: 2 additions & 2 deletions pkgs/tools/graphics/mangohud/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
, substituteAll
, coreutils
, curl
, glxinfo
, gnugrep
, gnused
, xdg-utils
Expand All @@ -18,6 +17,7 @@
, git
, glslang
, mako
, mesa-demos
, meson
, ninja
, pkg-config
Expand Down Expand Up @@ -131,9 +131,9 @@ stdenv.mkDerivation (finalAttrs: {
path = lib.makeBinPath [
coreutils
curl
glxinfo
gnugrep
gnused
mesa-demos
xdg-utils
];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/tools/system/inxi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
, withRecommendedSystemPrograms ? withRecommends, util-linuxMinimal, dmidecode
, file, hddtemp, iproute2, ipmitool, usbutils, kmod, lm_sensors, smartmontools
, binutils, tree, upower, pciutils
, withRecommendedDisplayInformationPrograms ? withRecommends, glxinfo, xorg
, withRecommendedDisplayInformationPrograms ? withRecommends, mesa-demos, xorg
}:

let
Expand All @@ -16,7 +16,7 @@ let
];
recommendedDisplayInformationPrograms = lib.optionals
withRecommendedDisplayInformationPrograms
([ glxinfo ] ++ (with xorg; [ xdpyinfo xprop xrandr ]));
([ mesa-demos ] ++ (with xorg; [ xdpyinfo xprop xrandr ]));
programs = [ ps dnsutils ] # Core programs
++ recommendedSystemPrograms
++ recommendedDisplayInformationPrograms;
Expand Down
1 change: 1 addition & 0 deletions pkgs/top-level/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ mapAliases ({
glew-egl = lib.warn "'glew-egl' is now provided by 'glew' directly" glew; # Added 2024-08-11
glide = throw "'glide' has been removed as it is unmaintained, please use Go modules instead"; # Added 2023-12-26
glfw-wayland = glfw; # Added 2024-04-19
glxinfo = mesa-demos; # Added 2024-07-04
gmailieer = lieer; # Added 2020-04-19
gmic-qt-krita = throw "gmic-qt-krita was removed as it's no longer supported upstream."; # Converted to throw 2023-02-02
gnatboot11 = gnat-bootstrap11;
Expand Down
4 changes: 1 addition & 3 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8126,8 +8126,6 @@ with pkgs;

glogg = libsForQt5.callPackage ../tools/text/glogg { };

glxinfo = callPackage ../tools/graphics/glxinfo { };

gmrender-resurrect = callPackage ../tools/networking/gmrender-resurrect {
inherit (gst_all_1) gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav;
};
Expand Down Expand Up @@ -19868,9 +19866,9 @@ with pkgs;
intel-media-driver
intel-vaapi-driver
mesa
mesa-demos
libva-vdpau-driver
libvdpau-va-gl
glxinfo
vdpauinfo;
};

Expand Down

0 comments on commit 83d01be

Please sign in to comment.