diff mbox series

[bug#57125] gnu: Add mpv-libplacebo.

Message ID 20220810192209.24857-1-milkeymouse@meme.institute
State New
Headers show
Series [bug#57125] gnu: Add mpv-libplacebo. | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git-branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

Milkey Mouse Aug. 10, 2022, 7:22 p.m. UTC
* gnu/packages/video.scm (mpv-libplacebo): New variable.
---
 gnu/packages/video.scm | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

宋文武 Aug. 11, 2022, 8:11 a.m. UTC | #1
Milkey Mouse <milkeymouse@meme.institute> writes:

> * gnu/packages/video.scm (mpv-libplacebo): New variable.
> ---
>  gnu/packages/video.scm | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
>
> diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
> index d5dc59ddff..313ac94784 100644
> --- a/gnu/packages/video.scm
> +++ b/gnu/packages/video.scm
> @@ -2307,6 +2307,19 @@ (define-public gallery-dl
>  (define-public gnome-mpv
>    (deprecated-package "gnome-mpv" celluloid))
>  
> +(define-public mpv-libplacebo

Hello, instead add a variant package, how about enable libplacebo for
the existed mpv?  Will it add a lot size (guix size mpv) or reduce some
functions?
diff mbox series

Patch

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index d5dc59ddff..313ac94784 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -2307,6 +2307,19 @@  (define-public gallery-dl
 (define-public gnome-mpv
   (deprecated-package "gnome-mpv" celluloid))
 
+(define-public mpv-libplacebo
+  (package
+    (inherit mpv)
+    (name "mpv-libplacebo")
+    (inputs (append `(("libepoxy" ,libepoxy)
+                      ("libplacebo" ,libplacebo))
+                    (package-inputs mpv)))
+    (arguments
+     (substitute-keyword-arguments (package-arguments mpv)
+       ((#:configure-flags flags)
+        (append flags
+                `("--enable-shaderc" "--enable-libplacebo" "--enable-vulkan")))))))
+
 (define-public mpv-mpris
   (package
     (name "mpv-mpris")