summary refs log tree commit diff
path: root/pkgs/stdenv/generic
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2020-08-01 10:08:18 +0100
committerGitHub <noreply@github.com>2020-08-01 10:08:18 +0100
commitf6a30fcac5c14cdc6dfddf93b4a4ecd77dd84b78 (patch)
treed93c9d10bfb9770cb08fc0f056b590d47b4d1425 /pkgs/stdenv/generic
parentb1d838e20efe3ec594b76f0d33b9b318fb5fa74b (diff)
parentbc4927a5263aef5f418e81dc97c23bbf57f23d81 (diff)
downloadnixpkgs-f6a30fcac5c14cdc6dfddf93b4a4ecd77dd84b78.tar
nixpkgs-f6a30fcac5c14cdc6dfddf93b4a4ecd77dd84b78.tar.gz
nixpkgs-f6a30fcac5c14cdc6dfddf93b4a4ecd77dd84b78.tar.bz2
nixpkgs-f6a30fcac5c14cdc6dfddf93b4a4ecd77dd84b78.tar.lz
nixpkgs-f6a30fcac5c14cdc6dfddf93b4a4ecd77dd84b78.tar.xz
nixpkgs-f6a30fcac5c14cdc6dfddf93b4a4ecd77dd84b78.tar.zst
nixpkgs-f6a30fcac5c14cdc6dfddf93b4a4ecd77dd84b78.zip
Merge pull request #89794 from Mic92/source-date-epoch
Diffstat (limited to 'pkgs/stdenv/generic')
-rw-r--r--pkgs/stdenv/generic/setup.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh
index 839757945a2..d19ed342aab 100644
--- a/pkgs/stdenv/generic/setup.sh
+++ b/pkgs/stdenv/generic/setup.sh
@@ -219,12 +219,13 @@ printWords() {
 # Initialisation.
 
 
-# Set a fallback default value for SOURCE_DATE_EPOCH, used by some
-# build tools to provide a deterministic substitute for the "current"
-# time. Note that 1 = 1970-01-01 00:00:01. We don't use 0 because it
-# confuses some applications.
+# Set a fallback default value for SOURCE_DATE_EPOCH, used by some build tools
+# to provide a deterministic substitute for the "current" time. Note that
+# 315532800 = 1980-01-01 12:00:00. We use this date because python's wheel
+# implementation uses zip archive and zip does not support dates going back to
+# 1970.
 export SOURCE_DATE_EPOCH
-: ${SOURCE_DATE_EPOCH:=1}
+: ${SOURCE_DATE_EPOCH:=315532800}
 
 
 # Wildcard expansions that don't match should expand to an empty list.