Merge pull request #319715 from jmbaur/repart-compression-threads

nixos/systemd-repart: respect NIX_BUILD_CORES for image compression
This commit is contained in:
Artturin
2024-06-28 04:26:20 +03:00
committed by GitHub
+2 -2
View File
@@ -90,8 +90,8 @@ let
}."${compression.algorithm}";
compressionCommand = {
"zstd" = "zstd --no-progress --threads=0 -${toString compression.level}";
"xz" = "xz --keep --verbose --threads=0 -${toString compression.level}";
"zstd" = "zstd --no-progress --threads=$NIX_BUILD_CORES -${toString compression.level}";
"xz" = "xz --keep --verbose --threads=$NIX_BUILD_CORES -${toString compression.level}";
}."${compression.algorithm}";
in
stdenvNoCC.mkDerivation (finalAttrs: