mirror of
https://github.com/NixOS/nix
synced 2024-09-19 23:03:53 -04:00
fix: make sure tar
reproducibility flags are set
This commit is contained in:
parent
c7c5d370e0
commit
7f71fc7540
|
@ -18,7 +18,7 @@ test_tarball() {
|
||||||
local compressor="$2"
|
local compressor="$2"
|
||||||
|
|
||||||
tarball=$TEST_ROOT/tarball.tar$ext
|
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
|
nix-env -f file://$tarball -qa --out-path | grepQuiet dependencies
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue