diff options
| author | Hilton Chain <hako@ultrarare.space> | 2026-03-22 15:30:42 +0800 |
|---|---|---|
| committer | Hilton Chain <hako@ultrarare.space> | 2026-03-22 22:32:52 +0800 |
| commit | e303ab967d645448d4717d0e8f4c1c9b6fef5b6e (patch) | |
| tree | 510a6f10478b306263c02a44433913189f3e76a1 /nongnu | |
| parent | e1deb07f1b64ff1c3dd8a7c25a962ae8abafef59 (diff) | |
nongnu: Add egl-wayland2.
* nongnu/packages/nvidia.scm (egl-wayland2): New variable.
Diffstat (limited to 'nongnu')
| -rw-r--r-- | nongnu/packages/nvidia.scm | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nongnu/packages/nvidia.scm b/nongnu/packages/nvidia.scm index 210def2..a1fd1ea 100644 --- a/nongnu/packages/nvidia.scm +++ b/nongnu/packages/nvidia.scm @@ -898,6 +898,41 @@ GBM EGL support.") (home-page "https://github.com/NVIDIA/egl-gbm") (license license-gnu:expat))) +(define-public egl-wayland2 + (package + (inherit egl-wayland) + (name "egl-wayland2") + (version "1.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/NVIDIA/egl-wayland2") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "15n6jf8kxkha0bxhjj9x720i88nqar8k6wkirav2izbi52vgxnji")))) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'patch-library-reference + (lambda* (#:key outputs #:allow-other-keys) + (let ((dir "share/egl/egl_external_platform.d")) + (with-directory-excursion (in-vicinity #$output dir) + (substitute* "09_nvidia_wayland2.json" + (("libnvidia-egl-.*\\.so\\.." lib) + (search-input-file + outputs (in-vicinity "lib" lib))))))))))) + (synopsis "Dma-buf-based Wayland external platform library") + (description + "This is a new implementation of the EGL External Platform Library for +Wayland (@code{EGL_KHR_platform_wayland}), using the NVIDIA driver's new +platform surface interface, which simplifies a lot of the library and improves +window resizing.") + (home-page "https://github.com/NVIDIA/egl-wayland2") + (license license-gnu:asl2.0))) + (define-public egl-x11 (package (name "egl-x11") |
