defpkgbuild(mesa-platform-headers, #:pkgname, "mesa-platform-headers", #:pkgver, "24.2.8", #:pkgrel, 1, #:pkgdesc, "Khronos platform declarations for EGL providers and consumers", #:arch, [#:any], #:license, "MIT", #:url, "https://www.mesa3d.org/", #:source, ["https://archive.mesa3d.org/mesa-24.2.8.tar.xz"], #:sha256sums, ["999d0a854f43864fc098266aaf25600ce7961318a1e2e358bff94a7f53580e30"], #:package, fn() { ; libepoxy's public EGL header includes these before Mesa itself is built. run("install", "-Dm644", "mesa-24.2.8/include/EGL/eglplatform.h", string-append(pkgdir(), "/usr/include/EGL/eglplatform.h")) run("install", "-Dm644", "mesa-24.2.8/include/KHR/khrplatform.h", string-append(pkgdir(), "/usr/include/KHR/khrplatform.h")) })