Use lib.cartesianProduct and not …OfSets

The latter is deprecated.
This commit is contained in:
Simon Bruder 2024-12-15 17:13:45 +01:00
parent 7a554a66fa
commit 390120aece
Signed by: simon
GPG key ID: 347FF8699CDA0776

View file

@ -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" ];