efraim pushed a commit to branch rust-team
in repository guix.

commit aa60afa163008d72b1f19021560ce39f6905a2a1
Author: Efraim Flashner <efr...@flashner.co.il>
AuthorDate: Thu Sep 19 15:11:01 2024 +0300

    gnu: ffmpeg: Build with rav1e on more systems.
    
    * gnu/packages/video.scm (ffmpeg)[inputs]: Add rav1e on all systems
    where it is supported.
    [arguments]: Add flag to use rav1e when it is added as an input.
    
    Change-Id: I53cc11cd406b165dc366ebe547ae6574ea9f58a3
---
 gnu/packages/video.scm | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index c4c07aa4d9..1b90eca4aa 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -1681,9 +1681,7 @@ operate properly.")
     (build-system gnu-build-system)
     (inputs
      (append
-      ;; XXX: rav1e depends on rust, which currently only works on x86_64.
-      ;; See also the related configure flag when changing this.
-      (if (target-x86-64?) (list rav1e) '())
+      (if (supported-package? rav1e) (list rav1e) '())
       (list dav1d
             fontconfig
             freetype
@@ -1796,7 +1794,7 @@ operate properly.")
          "--enable-libmp3lame"
          "--enable-libopus"
          "--enable-libpulse"
-         #$@(if (target-x86-64?)
+         #$@(if (this-package-input "rav1e")
                 '("--enable-librav1e")
                 '())
          "--enable-libsoxr"

Reply via email to