nongnu: Remove obs-nvenc.

To build OBS with NVENC support, apply the following transformation to an OBS
package:

(package-input-grafting `((,ffmpeg . ,ffmpeg-nvenc)
                          (,mesa . ,nvda)))

* nongnu/packages/video.scm (replace-ffmpeg-nvenc): Delete procedure.
(obs-nvenc): Remove variable.
This commit is contained in:
Hilton Chain 2025-01-20 14:21:20 +08:00
parent 896a712ff3
commit e4520936e1
No known key found for this signature in database
GPG Key ID: ACC66D09CA528292

View File

@ -41,10 +41,6 @@
" This build of FFmpeg includes the nonfree NVIDIA encoder for " This build of FFmpeg includes the nonfree NVIDIA encoder for
@code{h264_nvenc} and @code{hevc_nvenc} hardware encoding on NVIDIA GPUs.")))) @code{h264_nvenc} and @code{hevc_nvenc} hardware encoding on NVIDIA GPUs."))))
(define-public replace-ffmpeg-nvenc
(package-input-rewriting
`((,ffmpeg . ,ffmpeg-nvenc))))
(define-public gmmlib (define-public gmmlib
(package (package
(name "gmmlib") (name "gmmlib")
@ -222,13 +218,3 @@ codec APIs.")
(package-description obs) (package-description obs)
" This build of OBS includes embeded Chromium-based browser to enable " This build of OBS includes embeded Chromium-based browser to enable
Browser source.")))) Browser source."))))
(define-public obs-nvenc
(let ((obs-ffmpeg-nvenc (replace-ffmpeg-nvenc obs)))
(package/inherit obs-ffmpeg-nvenc
(name "obs-nvenc")
(description
(string-append
(package-description obs)
" This build of OBS includes the nonfree NVIDIA encoder for FFmpeg
@code{h264_nvenc} and @code{hevc_nvenc} hardware encoding on NVIDIA GPUs.")))))