Merge pull request #319870 from Infinidoge/peertube/limit-fd-threads

peertube: limit threads used for compression step
This commit is contained in:
Jörg Thalheim 2024-07-14 05:43:27 +02:00 committed by GitHub
commit d048f1ecf2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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
'';