From 88f33edcb02d5be2cca1b9e23273a577ce69d480 Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Fri, 13 Dec 2024 23:07:28 +0800 Subject: [PATCH] nongnu: Add egl-x11. * nongnu/packages/nvidia.scm (egl-x11): New variable. --- nongnu/packages/nvidia.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/nongnu/packages/nvidia.scm b/nongnu/packages/nvidia.scm index c17d1b1..c9bebcf 100644 --- a/nongnu/packages/nvidia.scm +++ b/nongnu/packages/nvidia.scm @@ -888,6 +888,30 @@ GBM EGL support.") (home-page "https://github.com/NVIDIA/egl-gbm") (license license-gnu:expat))) +(define-public egl-x11 + (package + (name "egl-x11") + (version "1.0.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/NVIDIA/egl-x11") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "15zqzx061cpzcs0mxc7nnsv9rabfszfxxmwr5v7flxi4m9j6hshc")))) + (build-system meson-build-system) + (native-inputs (list pkg-config)) + (inputs (list eglexternalplatform mesa-for-nvda)) + (synopsis "X11 and XCB EGL external platform library") + (description + "This package provides an EGL platform library for the NVIDIA driver to +support XWayland via xlib (using @code{EGL_KHR_platform_x11}) or xcb (using +@code{EGL_EXT_platform_xcb}).") + (home-page "https://github.com/NVIDIA/egl-x11") + (license license-gnu:expat))) + (define-public gpustat (package (name "gpustat")