packages: video: Remove mpv-sans-pulseaudio, define and export mpv-minimal/x11 and mpv-minimal/wayland

pull/3/head
Luis Guilherme Coelho 2024-06-05 13:46:17 -03:00
parent 0e56d534af
commit e11a16a5bf
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
1 changed files with 41 additions and 4 deletions

View File

@ -3,10 +3,47 @@
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (gnu packages video)) #:use-module (gnu packages video))
(define-public mpv-sans-pulseaudio (define-public mpv-minimal/x11
(package/inherit mpv (package/inherit mpv
(name "mpv-minimal-x11")
(propagated-inputs (propagated-inputs
(filter (match-lambda (filter (match-lambda
(("pulseaudio" _) #f) ((package-name _)
(else #t)) (not (member package-name
(package-propagated-inputs mpv))))) `("jack"
"libbluray"
"libcdio-paranoia"
"libdvdnav"
"wayland"
"wayland-protocols"
"libdvdread"
"pulseaudio")))))
(package-propagated-inputs mpv)))
(synopsis "Audio and video player")
(description "This package provides a minimal build of mpv, the
general-purpose audio and video player, for X11.")))
(define-public mpv-minimal/wayland
(package/inherit mpv
(name "mpv-minimal-wayland")
(propagated-inputs
(filter (match-lambda
((package-name _)
(not (member package-name
`("jack"
"libbluray"
"libcdio-paranoia"
"libdvdnav"
"libdvdread"
"libext"
"libx11"
"libxinerama"
"libxpresent"
"libxrandr"
"libxscrnsaver"
"libxv"
"pulseaudio")))))
(package-propagated-inputs mpv)))
(synopsis "Audio and video player")
(description "This package provides a minimal build of mpv, the
general-purpose audio and video player, for wayland.")))