Merge pull request #21305 from joachifm/deterministic-tarball-v2

make-system-tarball: create reproducible tarballs
This commit is contained in:
Eelco Dolstra 2016-12-20 15:39:32 +01:00 committed by GitHub
commit df48cb7aa2
1 changed files with 3 additions and 2 deletions

View File

@ -52,9 +52,10 @@ $extraCommands
mkdir -p $out/tarball
tar cvJf $out/tarball/$fileName.tar.xz * $extraArgs
rm env-vars
tar --sort=name --mtime='1970-01-01' -cvJf $out/tarball/$fileName.tar.xz * $extraArgs
mkdir -p $out/nix-support
echo $system > $out/nix-support/system
echo "file system-tarball $out/tarball/$fileName.tar.xz" > $out/nix-support/hydra-build-products