diff options
author | Artturi <Artturin@artturin.com> | 2023-01-15 00:04:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-15 00:04:51 +0200 |
commit | f338f1422e116e2269b7e4f3dfada2233bed4bb4 (patch) | |
tree | fbcb06aae4d0de38f52c2ec3d9257dc4e9bb2499 /pkgs/stdenv | |
parent | 37b86060b360758cc77ce5de14144117287a1b78 (diff) | |
parent | 88f36d2694840816f01ee1436867533669757437 (diff) |
Merge pull request #209371 from Artturin/gziprepro
gzip: make reproducible when GZIP_NO_TIMESTAMPS is set
Diffstat (limited to 'pkgs/stdenv')
-rw-r--r-- | pkgs/stdenv/generic/setup.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh index d37fc029cfed8..5fba54dbcced8 100644 --- a/pkgs/stdenv/generic/setup.sh +++ b/pkgs/stdenv/generic/setup.sh @@ -1525,6 +1525,10 @@ showPhaseFooter() { genericBuild() { + # variable used by our gzip wrapper to add -n. + # gzip is in common-path.nix and is added to nix-shell but we only want to change its behaviour in nix builds. do not move to a setupHook in gzip. + export GZIP_NO_TIMESTAMPS=1 + if [ -f "${buildCommandPath:-}" ]; then source "$buildCommandPath" return |