mesa-gl-headers: init at 25.0.1

This commit is contained in:
K900
2025-03-06 09:09:51 +03:00
parent b3d0fa247f
commit 0c746c8c0a
2 changed files with 40 additions and 0 deletions
@@ -0,0 +1,39 @@
{
lib,
stdenv,
fetchFromGitLab,
}:
let
common = import ./common.nix { inherit lib fetchFromGitLab; };
headers = [
"include/EGL/eglext_angle.h"
"include/EGL/eglmesaext.h"
];
in
stdenv.mkDerivation rec {
pname = "mesa-gl-headers";
# These are a bigger rebuild and don't change often, so keep them separate.
version = "25.0.1";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "mesa";
repo = "mesa";
rev = "mesa-${version}";
hash = "sha256-9D4d7EEdZysvXDRcmpbyt85Lo64sldNRomp6/HUVORo=";
};
dontBuild = true;
installPhase = ''
for header in ${toString headers}; do
install -Dm444 $header $out/$header
done
'';
passthru = { inherit headers; };
inherit (common) meta;
}
+1
View File
@@ -9905,6 +9905,7 @@ with pkgs;
mesa_i686 = pkgsi686Linux.mesa; # make it build on Hydra
libgbm = callPackage ../development/libraries/mesa/gbm.nix {};
mesa-gl-headers = callPackage ../development/libraries/mesa/headers.nix {};
## End libGL/libGLU/Mesa stuff