From 23e58b71946d4337e0aebba1746b8f364688420b Mon Sep 17 00:00:00 2001 From: Remco van 't Veer Date: Sun, 28 Sep 2025 12:21:46 +0200 Subject: [PATCH] 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 --- gnu/packages/video.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 991c4b4741e..f0f23e6f8d8 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -74,6 +74,7 @@ ;;; Copyright © 2025 Sharlatan Hellseher ;;; Copyright © 2025 VnPower ;;; Copyright © 2025 Zhu Zihao +;;; Copyright © 2025 Remco van 't Veer ;;; ;;; 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"