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
|
-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
|
# https://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Profiles
|
||||||
profiles = [
|
profiles = [
|
||||||
"baseline"
|
"baseline"
|
||||||
|
@ -123,12 +99,46 @@ let
|
||||||
];
|
];
|
||||||
tunes = [ "film" "animation" "grain" "stillimage" "fastdecode" ];
|
tunes = [ "film" "animation" "grain" "stillimage" "fastdecode" ];
|
||||||
|
|
||||||
ffmpegs = (lib.crossLists ffmpegDescriptive [ profiles presets ])
|
ffmpegs = let
|
||||||
++ (lib.crossLists ffmpegDescriptive1080p [ profiles presets ]);
|
|
||||||
|
|
||||||
ffmpegsTune =
|
configurations = lib.cartesianProductOfSets {
|
||||||
(lib.crossLists ffmpegDescriptiveTune [ profiles presets tunes ])
|
profile = profiles;
|
||||||
++ (lib.crossLists ffmpegDescriptiveTune1080p [ profiles presets tunes ]);
|
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 {
|
in {
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@ let
|
||||||
mv "$1.backup" "$1"
|
mv "$1.backup" "$1"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pandocScript = inputFormat: outputFormat:
|
pandocScript = { inputFormat, outputFormat }:
|
||||||
pkgs.writers.writeDashBin "pandoc-from-${inputFormat}-to-${outputFormat}" ''
|
pkgs.writers.writeDashBin "pandoc-from-${inputFormat}-to-${outputFormat}" ''
|
||||||
${pkgs.pandoc}/bin/pandoc \
|
${pkgs.pandoc}/bin/pandoc \
|
||||||
--from ${inputFormat} \
|
--from ${inputFormat} \
|
||||||
|
@ -390,10 +390,10 @@ in {
|
||||||
(map (host: "rsync -avLz ${host}.private:/etc/info/ ~/.etc_info")
|
(map (host: "rsync -avLz ${host}.private:/etc/info/ ~/.etc_info")
|
||||||
(attrNames config.module.cluster.services.tinc."private".hosts))))
|
(attrNames config.module.cluster.services.tinc."private".hosts))))
|
||||||
|
|
||||||
] ++ (lib.crossLists pandocScript [
|
] ++ (map pandocScript (lib.cartesianProductOfSets {
|
||||||
[ "man" "markdown" "mediawiki" ]
|
inputFormat = [ "man" "markdown" "mediawiki" ];
|
||||||
[ "mediawiki" "docbook5" "html5" "man" ]
|
outputFormat = [ "mediawiki" "docbook5" "html5" "man" ];
|
||||||
]) # ++ (map (search:
|
})) # ++ (map (search:
|
||||||
#pkgs.writers.writeDashBin "reddit-${search}" ''
|
#pkgs.writers.writeDashBin "reddit-${search}" ''
|
||||||
# ${unstablePkgs.tuir}/bin/tuir -s ${search} "$@"
|
# ${unstablePkgs.tuir}/bin/tuir -s ${search} "$@"
|
||||||
#'') [ "nixos" "systemdUltras" "terraform" ])
|
#'') [ "nixos" "systemdUltras" "terraform" ])
|
||||||
|
|
Loading…
Reference in a new issue