compress-all: remove xz and zst

This commit is contained in:
Motiejus Jakštys 2024-02-13 22:41:41 +02:00
parent 747de319c8
commit fd112231e8

View File

@ -47,7 +47,7 @@ For example, a caddy configuration snippet for gamja to serve
the static assets (JS, CSS files) pre-compressed: the static assets (JS, CSS files) pre-compressed:
virtualHosts."irc.example.org".extraConfig = '' virtualHosts."irc.example.org".extraConfig = ''
root * ${pkgs.compressAll pkgs.gamja} root * ${pkgs.compressAll pkgs.gamja {}}
file_server browse { file_server browse {
precompressed br gzip precompressed br gzip
} }
@ -96,8 +96,6 @@ Inputs:
xorg, xorg,
zopfli, zopfli,
brotli, brotli,
xz,
zstd,
}: drv: { }: drv: {
formats ? ["css" "js" "svg" "ttf" "eot" "txt" "xml" "map" "html" "json" "webmanifest"], formats ? ["css" "js" "svg" "ttf" "eot" "txt" "xml" "map" "html" "json" "webmanifest"],
extraFormats ? [], extraFormats ? [],
@ -108,8 +106,6 @@ Inputs:
{ {
compressor-gz = "${zopfli}/bin/zopfli --keep {}"; compressor-gz = "${zopfli}/bin/zopfli --keep {}";
compressor-br = "${brotli}/bin/brotli --keep --no-copy-stat {}"; compressor-br = "${brotli}/bin/brotli --keep --no-copy-stat {}";
compressor-xz = "${xz}/bin/xz --keep {}";
compressor-zst = "${zstd}/bin/zstd --keep {}";
} }
// lib.filterAttrs (k: _: (lib.hasPrefix "compressor-" k)) args; // lib.filterAttrs (k: _: (lib.hasPrefix "compressor-" k)) args;
compressCommands = compressCommands =