~ruther/guix-local

23e58b71946d4337e0aebba1746b8f364688420b — Remco van 't Veer 5 months ago 686aaca
gnu: yt-dlp: Fix non-x86 build.

The `search-input-file` procedure raises an error when file is not
available, `which` returns #f when executable is not available.

* gnu/packages/video.scm (yt-dlp): Fix non-x86 build.
[arguments] <#:phases>: Use which to check for pandoc.

Change-Id: I2c7bba7500defc31e69f6d7144ff1020505e4d43
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
1 files changed, 2 insertions(+), 1 deletions(-)

M gnu/packages/video.scm
M gnu/packages/video.scm => gnu/packages/video.scm +2 -1
@@ 74,6 74,7 @@
;;; Copyright © 2025 Sharlatan Hellseher <sharlatanus@gmail.ccom>
;;; Copyright © 2025 VnPower <vnpower@loang.net>
;;; Copyright © 2025 Zhu Zihao <all_but_last@163.com>
;;; Copyright © 2025 Remco van 't Veer <remco@remworks.net>
;;;
;;; This file is part of GNU Guix.
;;;


@@ 3172,7 3173,7 @@ video streaming services of the Finnish national broadcasting company Yle.")
                  "'\n")))))
          (add-before 'build 'build-generated-files
            (lambda* (#:key inputs #:allow-other-keys)
              (if (search-input-file inputs "bin/pandoc")
              (if (which "pandoc")
                  (invoke "make"
                          "PYTHON=python"
                          "yt-dlp"