3
0
Fork 0
forked from mirrors/nixpkgs

make-bootstrap-tools: set XZ to maximum level, big wins

x86_64 bootstrap tarball goes from 37M -> 21M (!)
This commit is contained in:
Will Dietz 2018-02-12 16:53:18 -06:00
parent a4c69744dc
commit 268bff6185

View file

@ -173,7 +173,7 @@ in with pkgs; rec {
mv $out/.pack $out/pack
mkdir $out/on-server
tar cvfJ $out/on-server/bootstrap-tools.tar.xz --hard-dereference --sort=name --numeric-owner --owner=0 --group=0 --mtime=@1 -C $out/pack .
XZ_OPT=-9 tar cvJf $out/on-server/bootstrap-tools.tar.xz --hard-dereference --sort=name --numeric-owner --owner=0 --group=0 --mtime=@1 -C $out/pack .
cp ${busyboxMinimal}/bin/busybox $out/on-server
chmod u+w $out/on-server/busybox
nuke-refs $out/on-server/busybox