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 ce747c5b..72d2892e 100644 --- a/nongnu/packages/video.scm +++ b/nongnu/packages/video.scm @@ -4,11 +4,13 @@ ;;; Copyright © 2024 Murilo <murilo@disroot.org> (define-module (nongnu packages video) + #:use-module (gnu packages gl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages video) #:use-module (guix build utils) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) + #:use-module (guix build-system meson) #:use-module (guix gexp) #:use-module (guix git-download) #:use-module (guix packages) @@ -161,6 +163,44 @@ video decode capabilities of supported Intel GPUs.")))) codec APIs.") (license license:expat))) +(define-public nvidia-vaapi-driver + (package + (name "nvidia-vaapi-driver") + (version "0.0.13") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/elFarto/nvidia-vaapi-driver") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1ycrik4sdiy14miqvin5vg79776p7p2pazm0s8la4kngbgss1qr9")))) + (build-system meson-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'fix-install-path + (lambda _ + (substitute* "meson.build" + (("(nvidia_install_dir = ).*" _ prefix) + (format #f "~a'~a/lib/dri'" prefix #$output)))))))) + (native-inputs (list pkg-config)) + (inputs (list libva mesa nv-codec-headers)) + ;; XXX Because of <https://issues.guix.gnu.org/issue/22138>, we need to add + ;; this to all VA-API back ends instead of once to libva. + (native-search-paths + (list (search-path-specification + (variable "LIBVA_DRIVERS_PATH") + (files '("lib/dri"))))) + (home-page "https://github.com/elFarto/nvidia-vaapi-driver") + (synopsis "VA-API implemention using NVIDIA's NVDEC.") + (description + "This is an VA-API implementation that uses NVDEC as a backend, +specifically designed to be used by Firefox for accelerated decoding of web +content.") + (license license:expat))) + (define-public obs-with-cef (package (inherit obs) |