Skip to content

feat(nix): add yt-meta package and home-manager wiring#199

Open
rrvsh wants to merge 2 commits intoprimefrom
feat/yt-meta-pr
Open

feat(nix): add yt-meta package and home-manager wiring#199
rrvsh wants to merge 2 commits intoprimefrom
feat/yt-meta-pr

Conversation

@rrvsh
Copy link
Owner

@rrvsh rrvsh commented Feb 20, 2026

Summary

  • add a standalone flake package yt-meta in nix/outputs/packages.nix using writeShellApplication with runtime-scoped yt-dlp, jq, ffmpeg, and deno
  • format output as title, uploader, dd/mm/yyyy and verify against https://www.youtube.com/watch?v=9M7pKi-3o18
  • include yt-meta in Home Manager via cfg.packages.${pkgs.stdenv.hostPlatform.system}.yt-meta so it resolves correctly across host architectures
  • document research, implementation, and verification in sessions/2026-02-21-yt-dlp-url-script.md

Validation

  • just rb (runs just nice, just check, then nh os switch .)
  • command -v yt-meta
  • yt-meta "https://www.youtube.com/watch?v=9M7pKi-3o18"

Add a runtime-scoped yt-dlp helper package that prints title, uploader, and dd/mm/yyyy upload date for a URL, so metadata extraction can be tested independently of Home Manager.
Wire the flake-parts package into Home Manager using hostPlatform.system so the command is available on supported architectures after switch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant