From 4e52baa7e2b13b143bf4b22bb8b505b916c99785 Mon Sep 17 00:00:00 2001 From: LoC Date: Sat, 26 Oct 2024 18:45:35 +0200 Subject: [PATCH 1/2] maintainers: add loc --- maintainers/maintainer-list.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 76d7164710bd..daf87dcea90d 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -12390,6 +12390,13 @@ githubId = 169170; name = "Mathias Schreck"; }; + loc = { + matrix = "@loc:locrealloc.de"; + github = "LoCrealloc"; + githubId = 64095253; + name = "LoC"; + keys = [ { fingerprint = "DCCE F73B 209A 6024 CAE7 F926 5563 EB4A 8634 4F15"; } ]; + }; locallycompact = { email = "dan.firth@homotopic.tech"; github = "locallycompact"; From 438a62e1beaeda3d93a472278175b5fafec84641 Mon Sep 17 00:00:00 2001 From: LoC Date: Sat, 26 Oct 2024 21:20:44 +0200 Subject: [PATCH 2/2] ytdl-sub: init at 2024.10.26 --- pkgs/by-name/yt/ytdl-sub/package.nix | 49 ++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 pkgs/by-name/yt/ytdl-sub/package.nix diff --git a/pkgs/by-name/yt/ytdl-sub/package.nix b/pkgs/by-name/yt/ytdl-sub/package.nix new file mode 100644 index 000000000000..71a0ee253521 --- /dev/null +++ b/pkgs/by-name/yt/ytdl-sub/package.nix @@ -0,0 +1,49 @@ +{ + python3Packages, + fetchPypi, + ffmpeg, + lib, +}: +python3Packages.buildPythonApplication rec { + pname = "ytdl-sub"; + version = "2024.10.26"; + pyproject = true; + + src = fetchPypi { + inherit version; + pname = "ytdl_sub"; + hash = "sha256-qfEPHhCB/Avl+nUIk2+ZVseg8ATP/LQmLvX/H9rhp7M="; + }; + + build-system = with python3Packages; [ + setuptools + wheel + ]; + + dependencies = with python3Packages; [ + yt-dlp + colorama + mergedeep + mediafile + pyyaml + ]; + + makeWrapperArgs = [ + "--set YTDL_SUB_FFMPEG_PATH ${lib.getExe' ffmpeg "ffmpeg"}" + "--set YTDL_SUB_FFPROBE_PATH ${lib.getExe' ffmpeg "ffprobe"}" + ]; + + meta = { + homepage = "https://github.com/jmbannon/ytdl-sub"; + description = "Lightweight tool to automate downloading and metadata generation with yt-dlp"; + longDescription = '' + ytdl-sub is a command-line tool that downloads media via yt-dlp and prepares it for your favorite media player, including Kodi, Jellyfin, Plex, Emby, and modern music players. No additional plugins or external scrapers are needed. + ''; + changelog = "https://github.com/jmbannon/ytdl-sub/releases/tag/${version}"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ + loc + ]; + mainProgram = "ytdl-sub"; + }; +}