yt-dlp: Add deno javascript runtime by default

This is now required for full YouTube extraction support. The upstream
project recommends deno as JavaScript runtime for its complete sandbox
support.
See https://github.com/yt-dlp/yt-dlp/wiki/EJS for more info.

Also disable the new javascript support in yt-dlp-light.
This commit is contained in:
Mynacol
2025-11-12 13:17:41 +01:00
committed by Sandro Jäckel
parent d743dbde25
commit 5ec4b3fc6d
2 changed files with 6 additions and 2 deletions
+5 -2
View File
@@ -4,11 +4,13 @@
fetchFromGitHub,
ffmpeg-headless,
rtmpdump,
deno,
atomicparsley,
pandoc,
installShellFiles,
atomicparsleySupport ? true,
ffmpegSupport ? true,
javascriptSupport ? true,
rtmpSupport ? true,
withAlias ? false, # Provides bin/youtube-dl for backcompat
nix-update-script,
@@ -80,14 +82,15 @@ python3Packages.buildPythonApplication rec {
# Ensure these utilities are available in $PATH:
# - ffmpeg: post-processing & transcoding support
# - deno: required for full YouTube support (since 2025.11.12)
# - rtmpdump: download files over RTMP
# - atomicparsley: embedding thumbnails
makeWrapperArgs =
let
packagesToBinPath =
[ ]
++ lib.optional atomicparsleySupport atomicparsley
lib.optional atomicparsleySupport atomicparsley
++ lib.optional ffmpegSupport ffmpeg-headless
++ lib.optional javascriptSupport deno
++ lib.optional rtmpSupport rtmpdump;
in
lib.optionals (packagesToBinPath != [ ]) [
+1
View File
@@ -12763,6 +12763,7 @@ with pkgs;
yt-dlp-light = yt-dlp.override {
atomicparsleySupport = false;
ffmpegSupport = false;
javascriptSupport = false;
rtmpSupport = false;
};