removed crossLists warning
This commit is contained in:
parent
3378dc9403
commit
ad155dd5c0
2 changed files with 44 additions and 34 deletions
|
@ -77,30 +77,6 @@ let
|
|||
-hide_banner
|
||||
'';
|
||||
|
||||
ffmpegDescriptive = profile: preset:
|
||||
ffmpegTemplate "${profile}-${preset}-720p" { inherit profile preset; };
|
||||
|
||||
ffmpegDescriptive1080p = profile: preset:
|
||||
ffmpegTemplate "${profile}-${preset}-1080p" {
|
||||
inherit profile preset;
|
||||
height = 1080;
|
||||
width = 1920;
|
||||
resolution = "1080p";
|
||||
};
|
||||
|
||||
ffmpegDescriptiveTune = profile: preset: tune:
|
||||
ffmpegTemplate "${profile}-${preset}-${tune}-720p" {
|
||||
inherit profile preset tune;
|
||||
};
|
||||
|
||||
ffmpegDescriptiveTune1080p = profile: preset: tune:
|
||||
ffmpegTemplate "${profile}-${preset}-${tune}-720p" {
|
||||
inherit profile preset tune;
|
||||
height = 1080;
|
||||
width = 1920;
|
||||
resolution = "1080p";
|
||||
};
|
||||
|
||||
# https://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Profiles
|
||||
profiles = [
|
||||
"baseline"
|
||||
|
@ -123,12 +99,46 @@ let
|
|||
];
|
||||
tunes = [ "film" "animation" "grain" "stillimage" "fastdecode" ];
|
||||
|
||||
ffmpegs = (lib.crossLists ffmpegDescriptive [ profiles presets ])
|
||||
++ (lib.crossLists ffmpegDescriptive1080p [ profiles presets ]);
|
||||
ffmpegs = let
|
||||
|
||||
ffmpegsTune =
|
||||
(lib.crossLists ffmpegDescriptiveTune [ profiles presets tunes ])
|
||||
++ (lib.crossLists ffmpegDescriptiveTune1080p [ profiles presets tunes ]);
|
||||
configurations = lib.cartesianProductOfSets {
|
||||
profile = profiles;
|
||||
preset = presets;
|
||||
};
|
||||
|
||||
p720 = { profile, preset }:
|
||||
ffmpegTemplate "${profile}-${preset}-720p" { inherit profile preset; };
|
||||
|
||||
p1080 = { profile, preset }:
|
||||
ffmpegTemplate "${profile}-${preset}-1080p" {
|
||||
inherit profile preset;
|
||||
height = 1080;
|
||||
width = 1920;
|
||||
resolution = "1080p";
|
||||
};
|
||||
in (map p720 configurations) ++ (map p1080 configurations);
|
||||
|
||||
ffmpegsTune = let
|
||||
configurations = lib.cartesianProductOfSets {
|
||||
profile = profiles;
|
||||
preset = presets;
|
||||
tune = tunes;
|
||||
};
|
||||
|
||||
p720 = { profile, preset, tune }:
|
||||
ffmpegTemplate "${profile}-${preset}-${tune}-720p" {
|
||||
inherit profile preset tune;
|
||||
};
|
||||
|
||||
p1080 = { profile, preset, tune }:
|
||||
ffmpegTemplate "${profile}-${preset}-${tune}-1080p" {
|
||||
inherit profile preset tune;
|
||||
height = 1080;
|
||||
width = 1920;
|
||||
resolution = "1080p";
|
||||
};
|
||||
|
||||
in (map p720 configurations) ++ (map p1080 configurations);
|
||||
|
||||
in {
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ let
|
|||
mv "$1.backup" "$1"
|
||||
'';
|
||||
|
||||
pandocScript = inputFormat: outputFormat:
|
||||
pandocScript = { inputFormat, outputFormat }:
|
||||
pkgs.writers.writeDashBin "pandoc-from-${inputFormat}-to-${outputFormat}" ''
|
||||
${pkgs.pandoc}/bin/pandoc \
|
||||
--from ${inputFormat} \
|
||||
|
@ -390,10 +390,10 @@ in {
|
|||
(map (host: "rsync -avLz ${host}.private:/etc/info/ ~/.etc_info")
|
||||
(attrNames config.module.cluster.services.tinc."private".hosts))))
|
||||
|
||||
] ++ (lib.crossLists pandocScript [
|
||||
[ "man" "markdown" "mediawiki" ]
|
||||
[ "mediawiki" "docbook5" "html5" "man" ]
|
||||
]) # ++ (map (search:
|
||||
] ++ (map pandocScript (lib.cartesianProductOfSets {
|
||||
inputFormat = [ "man" "markdown" "mediawiki" ];
|
||||
outputFormat = [ "mediawiki" "docbook5" "html5" "man" ];
|
||||
})) # ++ (map (search:
|
||||
#pkgs.writers.writeDashBin "reddit-${search}" ''
|
||||
# ${unstablePkgs.tuir}/bin/tuir -s ${search} "$@"
|
||||
#'') [ "nixos" "systemdUltras" "terraform" ])
|
||||
|
|
Loading…
Reference in a new issue