From 390120aece4ddca84e2f4832200745c1c9611225 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sun, 15 Dec 2024 17:13:45 +0100 Subject: [PATCH] =?UTF-8?q?Use=20lib.cartesianProduct=20and=20not=20?= =?UTF-8?q?=E2=80=A6OfSets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The latter is deprecated. --- users/simon/modules/youtube-dl.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/simon/modules/youtube-dl.nix b/users/simon/modules/youtube-dl.nix index a24ecbe..4b90e03 100644 --- a/users/simon/modules/youtube-dl.nix +++ b/users/simon/modules/youtube-dl.nix @@ -5,10 +5,10 @@ { lib, pkgs, ... }: let # zAudioFormat because a better video format is preferred and - # cartesianProductOfSets cycles through the attributes in lexicographic order + # cartesianProduct cycles through the attributes in lexicographic order formats = (map ({ videoFormat, zAudioFormat }: "${videoFormat}+${zAudioFormat}") - (lib.cartesianProductOfSets { + (lib.cartesianProduct { videoFormat = [ "bestvideo[vcodec^=av01]" "bestvideo[vcodec^=vp09]" "bestvideo[vcodec^=avc1]" "bestvideo" ]; zAudioFormat = [ "bestaudio[acodec^=opus]" "bestaudio[acodec^=mp4a]" "bestaudio" ]; })) ++ [ "best" ];