mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
Merge pull request #174689 from alyssais/compress-firmware-empty
compressFirmwareXz: fix with empty lib/firmware
This commit is contained in:
commit
6d6531477a
@ -7,7 +7,7 @@ runCommand "${firmware.name}-xz" {} ''
|
|||||||
(cd ${firmware} && find lib/firmware -type d -print0) |
|
(cd ${firmware} && find lib/firmware -type d -print0) |
|
||||||
(cd $out && xargs -0 mkdir -v --)
|
(cd $out && xargs -0 mkdir -v --)
|
||||||
(cd ${firmware} && find lib/firmware -type f -print0) |
|
(cd ${firmware} && find lib/firmware -type f -print0) |
|
||||||
(cd $out && xargs -0tP "$NIX_BUILD_CORES" -n1 \
|
(cd $out && xargs -0rtP "$NIX_BUILD_CORES" -n1 \
|
||||||
sh -c 'xz -9c -T1 -C crc32 --lzma2=dict=2MiB "${firmware}/$1" > "$1.xz"' --)
|
sh -c 'xz -9c -T1 -C crc32 --lzma2=dict=2MiB "${firmware}/$1" > "$1.xz"' --)
|
||||||
(cd ${firmware} && find lib/firmware -type l) | while read link; do
|
(cd ${firmware} && find lib/firmware -type l) | while read link; do
|
||||||
target="$(readlink "${firmware}/$link")"
|
target="$(readlink "${firmware}/$link")"
|
||||||
|
Loading…
Reference in New Issue
Block a user