mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
{nixos/channel,make-tarball.nix}: argue for unbounded compression threads
(cherry picked from commit 54dc8286f9)
This commit is contained in:
committed by
github-actions[bot]
parent
5a052d9845
commit
fb644007ef
@@ -35,6 +35,9 @@ pkgs.releaseTools.makeSourceTarball {
|
||||
NIX_STATE_DIR=$TMPDIR nix-env -f ../$releaseName/default.nix -qaP --meta --show-trace --xml \* > /dev/null
|
||||
cd ..
|
||||
chmod -R u+w $releaseName
|
||||
|
||||
# The compression tasks are shortlived; use all available CPUs (-T0) to
|
||||
# prioritize fast channel advancement.
|
||||
XZ_OPT="-T0" tar \
|
||||
--create \
|
||||
--file=$out/tarballs/$releaseName.tar.xz \
|
||||
|
||||
@@ -64,6 +64,9 @@ pkgs.releaseTools.sourceTarball {
|
||||
# Some context: https://github.com/NixOS/infra/issues/438
|
||||
distPhase = ''
|
||||
mkdir -p $out/tarballs
|
||||
|
||||
# The compression tasks are shortlived; use all available CPUs (-T0) to
|
||||
# prioritize fast channel advancement.
|
||||
XZ_OPT="-T0" tar \
|
||||
--create \
|
||||
--xz \
|
||||
|
||||
Reference in New Issue
Block a user