diff options
| author | Hilton Chain <hako@ultrarare.space> | 2025-02-25 05:51:48 +0800 |
|---|---|---|
| committer | Hilton Chain <hako@ultrarare.space> | 2025-02-28 08:28:41 +0800 |
| commit | 1a3acd8e726b35dcc39bf9c306385114993ad8bb (patch) | |
| tree | 6f18c9ece337e4780698fb3ecbad5d8d87bf52da | |
| parent | 8c41304decb916892fa07ca86893e4cf926ee884 (diff) | |
nongnu: Add nvidia-vaapi-driver.
* nongnu/packages/video.scm (nvidia-vaapi-driver): New variable.
| -rw-r--r-- | nongnu/packages/video.scm | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/nongnu/packages/video.scm b/nongnu/packages/video.scm index ce747c5..72d2892 100644 --- a/nongnu/packages/video.scm +++ b/nongnu/packages/video.scm | |||
| @@ -4,11 +4,13 @@ | |||
| 4 | ;;; Copyright © 2024 Murilo <murilo@disroot.org> | 4 | ;;; Copyright © 2024 Murilo <murilo@disroot.org> |
| 5 | 5 | ||
| 6 | (define-module (nongnu packages video) | 6 | (define-module (nongnu packages video) |
| 7 | #:use-module (gnu packages gl) | ||
| 7 | #:use-module (gnu packages pkg-config) | 8 | #:use-module (gnu packages pkg-config) |
| 8 | #:use-module (gnu packages video) | 9 | #:use-module (gnu packages video) |
| 9 | #:use-module (guix build utils) | 10 | #:use-module (guix build utils) |
| 10 | #:use-module (guix build-system cmake) | 11 | #:use-module (guix build-system cmake) |
| 11 | #:use-module (guix build-system gnu) | 12 | #:use-module (guix build-system gnu) |
| 13 | #:use-module (guix build-system meson) | ||
| 12 | #:use-module (guix gexp) | 14 | #:use-module (guix gexp) |
| 13 | #:use-module (guix git-download) | 15 | #:use-module (guix git-download) |
| 14 | #:use-module (guix packages) | 16 | #:use-module (guix packages) |
| @@ -161,6 +163,44 @@ video decode capabilities of supported Intel GPUs.")))) | |||
| 161 | codec APIs.") | 163 | codec APIs.") |
| 162 | (license license:expat))) | 164 | (license license:expat))) |
| 163 | 165 | ||
| 166 | (define-public nvidia-vaapi-driver | ||
| 167 | (package | ||
| 168 | (name "nvidia-vaapi-driver") | ||
| 169 | (version "0.0.13") | ||
| 170 | (source | ||
| 171 | (origin | ||
| 172 | (method git-fetch) | ||
| 173 | (uri (git-reference | ||
| 174 | (url "https://github.com/elFarto/nvidia-vaapi-driver") | ||
| 175 | (commit (string-append "v" version)))) | ||
| 176 | (file-name (git-file-name name version)) | ||
| 177 | (sha256 | ||
| 178 | (base32 "1ycrik4sdiy14miqvin5vg79776p7p2pazm0s8la4kngbgss1qr9")))) | ||
| 179 | (build-system meson-build-system) | ||
| 180 | (arguments | ||
| 181 | (list #:phases | ||
| 182 | #~(modify-phases %standard-phases | ||
| 183 | (add-before 'configure 'fix-install-path | ||
| 184 | (lambda _ | ||
| 185 | (substitute* "meson.build" | ||
| 186 | (("(nvidia_install_dir = ).*" _ prefix) | ||
| 187 | (format #f "~a'~a/lib/dri'" prefix #$output)))))))) | ||
| 188 | (native-inputs (list pkg-config)) | ||
| 189 | (inputs (list libva mesa nv-codec-headers)) | ||
| 190 | ;; XXX Because of <https://issues.guix.gnu.org/issue/22138>, we need to add | ||
| 191 | ;; this to all VA-API back ends instead of once to libva. | ||
| 192 | (native-search-paths | ||
| 193 | (list (search-path-specification | ||
| 194 | (variable "LIBVA_DRIVERS_PATH") | ||
| 195 | (files '("lib/dri"))))) | ||
| 196 | (home-page "https://github.com/elFarto/nvidia-vaapi-driver") | ||
| 197 | (synopsis "VA-API implemention using NVIDIA's NVDEC.") | ||
| 198 | (description | ||
| 199 | "This is an VA-API implementation that uses NVDEC as a backend, | ||
| 200 | specifically designed to be used by Firefox for accelerated decoding of web | ||
| 201 | content.") | ||
| 202 | (license license:expat))) | ||
| 203 | |||
| 164 | (define-public obs-with-cef | 204 | (define-public obs-with-cef |
| 165 | (package | 205 | (package |
| 166 | (inherit obs) | 206 | (inherit obs) |
