From 6ad26e39e09f5700805f9ad3cf71c2c83222d474 Mon Sep 17 00:00:00 2001 From: Samuel Ainsworth Date: Sun, 21 Dec 2025 15:03:02 -0500 Subject: [PATCH 1/2] mkchromecast-unstable: 2022-10-31 -> 2025-06-01 Updates mkchromecast to the latest commit and migrates from youtube-dl to yt-dlp. Includes a patch from upstream PR #480 to update README documentation to reflect the yt-dlp migration. --- .../networking/mkchromecast/default.nix | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/networking/mkchromecast/default.nix b/pkgs/applications/networking/mkchromecast/default.nix index 03b835b042c4..fe78d600b9ab 100644 --- a/pkgs/applications/networking/mkchromecast/default.nix +++ b/pkgs/applications/networking/mkchromecast/default.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch2, python3Packages, sox, flac, @@ -11,7 +12,7 @@ vorbis-tools, pulseaudio, nodejs, - youtube-dl, + yt-dlp, opusTools, gst_all_1, enableSonos ? true, @@ -27,23 +28,32 @@ let gst_all_1.gstreamer nodejs ffmpeg - youtube-dl + yt-dlp ] ++ lib.optionals stdenv.hostPlatform.isLinux [ pulseaudio ]; in python3Packages.buildPythonApplication { pname = "mkchromecast-unstable"; - version = "2022-10-31"; + version = "2025-06-01"; format = "setuptools"; src = fetchFromGitHub { owner = "muammar"; repo = "mkchromecast"; - rev = "0de9fd78c4122dec4f184aeae2564790b45fe6dc"; - sha256 = "sha256-dxsIcBPrZaXlsfzOEXhYj2qoK5LRducJG2ggMrMMl9Y="; + rev = "6e583366ae23b56a33c1ad4ca164e04d64174538"; + hash = "sha256-CtmOkQAqUNn7+59mWEfAsgtWmGcXD3eE9j2t3sLnXms="; }; + patches = [ + # Update README to use yt-dlp instead of youtube-dl + # https://github.com/muammar/mkchromecast/pull/480 + (fetchpatch2 { + url = "https://github.com/muammar/mkchromecast/commit/0a0eec9bf4a6c000c828b83a864cebe18ce64c2b.patch"; + hash = "sha256-sLzL2/HDYfO0+N8v8aJX3dl7LBSE5yWa0zR89dZkg84="; + }) + ]; + buildInputs = lib.optional stdenv.hostPlatform.isLinux qtwayland; propagatedBuildInputs = with python3Packages; From 91114c6143e11cb6e98d55038ed4a0dbed26d4c5 Mon Sep 17 00:00:00 2001 From: Samuel Ainsworth Date: Mon, 22 Dec 2025 00:23:38 -0500 Subject: [PATCH 2/2] mkchromecast-unstable: 2022-10-31 -> 2025-12-21 --- .../networking/mkchromecast/default.nix | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/pkgs/applications/networking/mkchromecast/default.nix b/pkgs/applications/networking/mkchromecast/default.nix index fe78d600b9ab..4faad8ccaaec 100644 --- a/pkgs/applications/networking/mkchromecast/default.nix +++ b/pkgs/applications/networking/mkchromecast/default.nix @@ -2,7 +2,6 @@ lib, stdenv, fetchFromGitHub, - fetchpatch2, python3Packages, sox, flac, @@ -35,25 +34,16 @@ let in python3Packages.buildPythonApplication { pname = "mkchromecast-unstable"; - version = "2025-06-01"; + version = "2025-12-21"; format = "setuptools"; src = fetchFromGitHub { owner = "muammar"; repo = "mkchromecast"; - rev = "6e583366ae23b56a33c1ad4ca164e04d64174538"; - hash = "sha256-CtmOkQAqUNn7+59mWEfAsgtWmGcXD3eE9j2t3sLnXms="; + rev = "9cdc5f3f9060ef4078522366ce896356515d8e52"; + hash = "sha256-UMzOIxgeTpAFQZtYirOYPoVcKgiKdGx2zwVyWmo32w4="; }; - patches = [ - # Update README to use yt-dlp instead of youtube-dl - # https://github.com/muammar/mkchromecast/pull/480 - (fetchpatch2 { - url = "https://github.com/muammar/mkchromecast/commit/0a0eec9bf4a6c000c828b83a864cebe18ce64c2b.patch"; - hash = "sha256-sLzL2/HDYfO0+N8v8aJX3dl7LBSE5yWa0zR89dZkg84="; - }) - ]; - buildInputs = lib.optional stdenv.hostPlatform.isLinux qtwayland; propagatedBuildInputs = with python3Packages;