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

23 lines
649 B
Nix
Raw Normal View History

2024-05-02 00:46:19 +00:00
{ ... }:
res: pkgs: super:
2024-06-30 08:16:52 +00:00
with pkgs; {
2024-05-02 00:46:19 +00:00
# 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.
2024-06-30 08:16:52 +00:00
libGL =
if stdenv.hostPlatform.useAndroidPrebuilt then
stdenv
else
callPackage ./stubs.nix { inherit (darwin.apple_sdk.frameworks) OpenGL; };
2024-05-02 00:46:19 +00:00
# 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
}