mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-08 07:56:16 -05:00
gnu: yt-dlp: Only build with pandoc on supported systems.
* gnu/packages/video.scm (yt-dlp)[arguments]: Adjust custom 'build-generated-files phase to adjust to the presence of pandoc. [native-inputs]: Make explicit list. Only include pandoc on supported systems.
This commit is contained in:
parent
ca8c7a36df
commit
d521ad06e0
1 changed files with 19 additions and 8 deletions
|
@ -2509,12 +2509,17 @@ (define-public yt-dlp
|
|||
(("\\.get_param\\('ffmpeg_location'\\)" match)
|
||||
(format #f "~a or '~a'" match (which "ffmpeg"))))))
|
||||
(replace 'build-generated-files
|
||||
(lambda _
|
||||
(invoke "make"
|
||||
"PYTHON=python"
|
||||
"yt-dlp"
|
||||
"yt-dlp.1"
|
||||
"completions")))
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(if (assoc-ref inputs "pandoc")
|
||||
(invoke "make"
|
||||
"PYTHON=python"
|
||||
"yt-dlp"
|
||||
"yt-dlp.1"
|
||||
"completions")
|
||||
(invoke "make"
|
||||
"PYTHON=python"
|
||||
"yt-dlp"
|
||||
"completions"))))
|
||||
(replace 'fix-the-data-directories
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((prefix (assoc-ref outputs "out")))
|
||||
|
@ -2534,8 +2539,14 @@ (define-public yt-dlp
|
|||
python-mutagen
|
||||
python-pycryptodomex
|
||||
python-websockets)))
|
||||
(native-inputs (modify-inputs (package-native-inputs youtube-dl)
|
||||
(append pandoc python-pytest)))
|
||||
(native-inputs
|
||||
(append
|
||||
;; To generate the manpage.
|
||||
(if (member (%current-system)
|
||||
(package-transitive-supported-systems pandoc))
|
||||
(list pandoc)
|
||||
'())
|
||||
(list python-pytest zip)))
|
||||
(description
|
||||
"yt-dlp is a small command-line program to download videos from
|
||||
YouTube.com and many more sites. It is a fork of youtube-dl with a
|
||||
|
|
Loading…
Reference in a new issue