Use lib.cartesianProduct and not …OfSets
The latter is deprecated.
This commit is contained in:
parent
7a554a66fa
commit
390120aece
|
@ -5,10 +5,10 @@
|
||||||
{ lib, pkgs, ... }:
|
{ lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
# zAudioFormat because a better video format is preferred and
|
# 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
|
formats = (map
|
||||||
({ videoFormat, zAudioFormat }: "${videoFormat}+${zAudioFormat}")
|
({ videoFormat, zAudioFormat }: "${videoFormat}+${zAudioFormat}")
|
||||||
(lib.cartesianProductOfSets {
|
(lib.cartesianProduct {
|
||||||
videoFormat = [ "bestvideo[vcodec^=av01]" "bestvideo[vcodec^=vp09]" "bestvideo[vcodec^=avc1]" "bestvideo" ];
|
videoFormat = [ "bestvideo[vcodec^=av01]" "bestvideo[vcodec^=vp09]" "bestvideo[vcodec^=avc1]" "bestvideo" ];
|
||||||
zAudioFormat = [ "bestaudio[acodec^=opus]" "bestaudio[acodec^=mp4a]" "bestaudio" ];
|
zAudioFormat = [ "bestaudio[acodec^=opus]" "bestaudio[acodec^=mp4a]" "bestaudio" ];
|
||||||
})) ++ [ "best" ];
|
})) ++ [ "best" ];
|
||||||
|
|
Loading…
Reference in a new issue