Merge pull request #9225 from drupol/nixpkgs-pr-107251/make-gnutar-reproducible

fix: make sure `tar` reproducibility flags are set
This commit is contained in:
Eelco Dolstra 2023-11-06 10:51:42 +01:00 committed by GitHub
commit 28dddde0ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,7 @@ test_tarball() {
local compressor="$2"
tarball=$TEST_ROOT/tarball.tar$ext
(cd $TEST_ROOT && tar cf - tarball) | $compressor > $tarball
(cd $TEST_ROOT && GNUTAR_REPRODUCIBLE= tar --mtime=$tarroot/default.nix --owner=0 --group=0 --numeric-owner --sort=name -c -f - tarball) | $compressor > $tarball
nix-env -f file://$tarball -qa --out-path | grepQuiet dependencies