core/pkgs/by-name/me/mesa/packages.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
649 B
Nix
Raw Normal View History

2024-05-02 00:46:19 +00:00
{ ... }:
res: pkgs: super:
with pkgs; {
# Default libGL implementation, should provide headers and
# libGL.so/libEGL.so/... to link agains them. Android NDK provides
# an OpenGL implementation, we can just use that.
libGL =
if stdenv.hostPlatform.useAndroidPrebuilt then
stdenv
else
callPackage ./stubs.nix { inherit (darwin.apple_sdk.frameworks) OpenGL; };
# Default libGLU
libGLU = mesa_glu;
mesa = darwin.apple_sdk_11_0.callPackage ./. {
inherit (darwin.apple_sdk_11_0.frameworks) OpenGL;
inherit (darwin.apple_sdk_11_0.libs) Xplugin;
};
mesa_i686 = pkgsi686Linux.mesa; # make it build on Hydra
}