mirror of
https://github.com/ophilli/norish.git
synced 2026-11-04 15:29:41 -08:00
nix module: YTDLP_PATH is never read; norish looks for yt-dlp in /app/bin #1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
nix/module.nix(line 170 onmainand onnas-0.17.3) sets:norish never reads
YTDLP_PATH. It readsYT_DLP_BIN_DIR(packages/config/src/env-config-server.ts), and withNODE_ENV=productionits default is/app/bin, the path in the Docker image.ensureYtDlpBinary()(packages/api/src/video/yt-dlp.ts) first runsfs.mkdir(path.dirname(ytDlpPath), { recursive: true }), so on NixOS every video operation fails before it starts:Seen on nas (nas-0.17.3, in the norish microVM, oap/nix-config#112) on 2026-09-27, when importing https://cooking.nytimes.com/recipes/1015819-chocolate-chip-cookies. The recipe imports, but without its video. The host norish had the same bug. With the module's
ProtectSystem = "strict",/appcould not be made even if it were wanted.Fix
In
nix/module.nix, replace the dead variable with the one norish reads:fs.mkdirwithrecursive: truesucceeds on a directory that exists,fs.accessthen findsyt-dlp, and in production norish never downloads a binary. Do it onmainand onnas-0.17.3, then bump thenorishinput in nix-config.Check
ENOENTfor/app, and the video must appear with the recipe.isVideoParsingEnabled()inserver-config-loader.ts). On nas both are off today, so a YouTube URL fails with "Video recipe parsing is not enabled." whatever this fix does.🤖 Generated with Claude Code