packages: video: Use modify-inputs to specify the propagated inputs of mpv-minimal/x11 and mpv-minimal-wayland

pull/3/head
Luis Guilherme Coelho 2024-07-07 14:58:43 -03:00
parent 175abb1273
commit ea7e518cb2
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
1 changed files with 23 additions and 30 deletions

View File

@ -1,5 +1,4 @@
(define-module (radix packages video)
#:use-module (ice-9 match)
#:use-module (guix gexp)
#:use-module (guix packages)
#:use-module (guix utils)
@ -14,18 +13,15 @@
#~(list "-Dlibmpv=true"
"-Dbuild-date=false"))))
(propagated-inputs
(filter (match-lambda
((package-name _)
(not (member package-name
`("jack"
"libbluray"
"libcdio-paranoia"
"libdvdnav"
"wayland"
"wayland-protocols"
"libdvdread"
"pulseaudio")))))
(package-propagated-inputs mpv)))
(modify-inputs (package-propagated-inputs mpv)
(delete "jack")
(delete "libbluray")
(delete "libcdio-paranoia")
(delete "libdvdnav")
(delete "wayland")
(delete "wayland-protocols")
(delete "libdvdread")
(delete "pulseaudio")))
(synopsis "Audio and video player")
(description "This package provides a minimal build of mpv, the
general-purpose audio and video player, for X11.")))
@ -39,23 +35,20 @@ general-purpose audio and video player, for X11.")))
#~(list "-Dlibmpv=true"
"-Dbuild-date=false"))))
(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)))
(modify-inputs (package-propagated-inputs mpv)
(delete "jack")
(delete "libbluray")
(delete "libcdio-paranoia")
(delete "libdvdnav")
(delete "libdvdread")
(delete "libext")
(delete "libx11")
(delete "libxinerama")
(delete "libxpresent")
(delete "libxrandr")
(delete "libxscrnsaver")
(delete "libxv")
(delete "pulseaudio")))
(synopsis "Audio and video player")
(description "This package provides a minimal build of mpv, the
general-purpose audio and video player, for wayland.")))