summaryrefslogtreecommitdiff
path: root/nongnu
diff options
context:
space:
mode:
Diffstat (limited to 'nongnu')
-rw-r--r--nongnu/packages/nvidia.scm35
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")