peertube: limit threads used for compression step

This commit is contained in:
Infinidoge 2024-06-14 14:20:55 -04:00
parent c80d01b53e
commit 206d55763b
No known key found for this signature in database

View File

@ -163,7 +163,7 @@ stdenv.mkDerivation rec {
# Create static gzip and brotli files
fd -e css -e eot -e html -e js -e json -e svg -e webmanifest -e xlf \
--type file --search-path $out/client/dist \
--type file --search-path $out/client/dist --threads $NIX_BUILD_CORES \
--exec gzip -9 -n -c {} > {}.gz \;\
--exec brotli --best -f {} -o {}.br
'';