make-bootstrap-tools{,-cross}.nix: Create deterministic tars

This commit is contained in:
Tuomas Tynkkynen 2016-07-19 01:04:53 +03:00 committed by Tuomas Tynkkynen
parent 53c039b96a
commit 3d50989651
2 changed files with 2 additions and 2 deletions

View File

@ -235,7 +235,7 @@ rec {
mv $out/.pack $out/pack mv $out/.pack $out/pack
mkdir $out/on-server mkdir $out/on-server
tar cvfJ $out/on-server/bootstrap-tools.tar.xz -C $out/pack . tar cvfJ $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 cp ${busyboxMinimal}/bin/busybox $out/on-server
chmod u+w $out/on-server/busybox chmod u+w $out/on-server/busybox
nuke-refs $out/on-server/busybox nuke-refs $out/on-server/busybox

View File

@ -146,7 +146,7 @@ rec {
mv $out/.pack $out/pack mv $out/.pack $out/pack
mkdir $out/on-server mkdir $out/on-server
tar cvfJ $out/on-server/bootstrap-tools.tar.xz -C $out/pack . tar cvfJ $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 cp ${busyboxMinimal}/bin/busybox $out/on-server
chmod u+w $out/on-server/busybox chmod u+w $out/on-server/busybox
nuke-refs $out/on-server/busybox nuke-refs $out/on-server/busybox