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>
This commit is contained in:
Remco van 't Veer 2025-09-28 12:21:46 +02:00 committed by Efraim Flashner
parent 686aaca898
commit 23e58b7194
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -74,6 +74,7 @@
;;; Copyright © 2025 Sharlatan Hellseher <sharlatanus@gmail.ccom> ;;; Copyright © 2025 Sharlatan Hellseher <sharlatanus@gmail.ccom>
;;; Copyright © 2025 VnPower <vnpower@loang.net> ;;; Copyright © 2025 VnPower <vnpower@loang.net>
;;; Copyright © 2025 Zhu Zihao <all_but_last@163.com> ;;; 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. ;;; This file is part of GNU Guix.
;;; ;;;
@ -3172,7 +3173,7 @@ video streaming services of the Finnish national broadcasting company Yle.")
"'\n"))))) "'\n")))))
(add-before 'build 'build-generated-files (add-before 'build 'build-generated-files
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(if (search-input-file inputs "bin/pandoc") (if (which "pandoc")
(invoke "make" (invoke "make"
"PYTHON=python" "PYTHON=python"
"yt-dlp" "yt-dlp"