2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-03-11 03:32:41 +00:00

Merge : libGL: complete meta, correct version

...into staging
This commit is contained in:
Vladimír Čunát 2023-04-04 09:03:05 +02:00
commit fcda0efbe2
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -1,12 +1,13 @@
{ stdenv
, libglvnd, mesa
, libglvnd
, mesa
, OpenGL
, testers
}:
stdenv.mkDerivation (finalAttrs: {
inherit (libglvnd) version;
pname = "libGL";
inherit (if stdenv.hostPlatform.isDarwin then mesa else libglvnd) version;
outputs = [ "out" "dev" ];
# On macOS, libglvnd is not supported, so we just use what mesa
@ -77,5 +78,10 @@ stdenv.mkDerivation (finalAttrs: {
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta.pkgConfigModules = [ "gl" "egl" "glesv1_cm" "glesv2" ];
meta = {
description = "Stub bindings using " + (if stdenv.hostPlatform.isDarwin then "mesa" else "libglvnd");
pkgConfigModules = [ "gl" "egl" "glesv1_cm" "glesv2" ];
} // {
inherit (if stdenv.hostPlatform.isDarwin then mesa.meta else libglvnd.meta) homepage license platforms;
};
})