From 185cd57527e7c43957309114be5af1c53ce693e2 Mon Sep 17 00:00:00 2001 From: LigeroTheTiger <42996211+LigeroTheTiger@users.noreply.github.com> Date: Sat, 27 Jun 2026 18:10:31 +0200 Subject: [PATCH 1/2] maintainers: add ligerothetiger --- maintainers/maintainer-list.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 7262e65f36e6..1ab5fe89325c 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -15719,6 +15719,17 @@ githubId = 124475; name = "Olli Helenius"; }; + ligerothetiger = { + email = "ligero@ligerothetiger.com"; + name = "LigeroTheTiger"; + github = "LigeroTheTiger"; + githubId = 42996211; + keys = [ + { + fingerprint = "5zLV9yqjL18GsG1qan0tGM5341niQNYnU/hiBCscn04"; + } + ]; + }; lightbulbjim = { email = "chris@killred.net"; github = "lightbulbjim"; From 037f2048c049c971a9de0ceaa1a80b7c7b798298 Mon Sep 17 00:00:00 2001 From: LigeroTheTiger <42996211+LigeroTheTiger@users.noreply.github.com> Date: Sat, 27 Jun 2026 18:12:28 +0200 Subject: [PATCH 2/2] youtubedr: init at 2.10.6 --- pkgs/by-name/yo/youtubedr/package.nix | 70 +++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 pkgs/by-name/yo/youtubedr/package.nix diff --git a/pkgs/by-name/yo/youtubedr/package.nix b/pkgs/by-name/yo/youtubedr/package.nix new file mode 100644 index 000000000000..cdb3023f698f --- /dev/null +++ b/pkgs/by-name/yo/youtubedr/package.nix @@ -0,0 +1,70 @@ +{ + lib, + buildGoModule, + versionCheckHook, + fetchFromGitHub, +}: + +let + # Disabled because tests rely on network requests + disabledTests = [ + "TestTranscript" + "TestSimpleTest" + "TestGetPlaylist" + "TestGetBigPlaylist" + "TestDownload_SensitiveContent" + "TestGetVideo_MultiLanguage" + "TestParseVideo" + "TestParse_PublishDate" + "TestDownload_WhenPlayabilityStatusIsNotOK" + "TestDownload_Regular" + "TestYoutube_GetItagInfo" + "TestClient_httpGetBodyBytes" + "TestClient_httpGetBodyBytes" + "TestGetStream" + "TestGetVideoWithManifestURL" + "TestWebClientGetVideoWithoutManifestURL" + "TestGetVideoWithoutManifestURL" + "TestClient_httpGetBodyBytes" + "TestDownload_FirstStream" + ]; +in +buildGoModule (finalAttrs: { + pname = "youtubedr"; + version = "2.10.6"; + + src = fetchFromGitHub { + owner = "kkdai"; + repo = "youtube"; + tag = "v${finalAttrs.version}"; + hash = "sha256-rkkqLBH4P5DMrbfsZwVgBjnQG1/fHdjVL4mU6amYUxM="; + }; + + __structuredAttrs = true; + + vendorHash = "sha256-DIdDDS8U4UR3ZPmwqrhsOfejUJ4UHmwcr4JCpjkwOzs="; + + ldflags = [ + "-X main.version=${finalAttrs.version}" + ]; + + checkFlags = [ + "-skip=${lib.concatStringsSep "|" disabledTests}" + ]; + + nativeInstallCheckInputs = [ + versionCheckHook + ]; + + versionCheckProgramArg = "version"; + versionCheckKeepEnvironment = [ "HOME" ]; + doInstallCheck = true; + + meta = { + homepage = "https://github.com/kkdai/youtube"; + description = "YouTube video download CLI"; + mainProgram = "youtubedr"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.ligerothetiger ]; + }; +})