Skip to content

Commit

Permalink
{libGL, libGLX}: point to libglcapsule and make supporting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandapip1 committed Aug 28, 2024
1 parent 93667ff commit 3163476
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/hardware/graphics.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ let

driversEnv = pkgs.buildEnv {
name = "graphics-drivers";
paths = [ cfg.package ] ++ cfg.extraPackages;
paths = [ cfg.package pkgs.libGL ] ++ cfg.extraPackages;
};

driversEnv32 = pkgs.buildEnv {
name = "graphics-drivers-32bit";
paths = [ cfg.package32 ] ++ cfg.extraPackages32;
paths = [ cfg.package32 pkgs.libGL ] ++ cfg.extraPackages32;
};
in
{
Expand Down
8 changes: 2 additions & 6 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22589,7 +22589,7 @@ with pkgs;
else if stdenv.hostPlatform.isDarwin then
darwin.apple_sdk.frameworks.OpenGL
else
libglvnd;
libglcapsule;

# On macOS, we use the OpenGL framework. Packages that use libGLX on
# macOS may need to depend on mesa_glu directly if this doesn’t work.
Expand All @@ -22600,11 +22600,7 @@ with pkgs;
mesa_glu;

# libglvnd does not work (yet?) on macOS.
libGLX =
if stdenv.hostPlatform.isDarwin then
mesa
else
libglvnd;
libGLX = libglcapsule;

# On macOS, we use the GLUT framework. Packages that use libGLX on
# macOS may need to depend on freeglut directly if this doesn’t work.
Expand Down

0 comments on commit 3163476

Please sign in to comment.