mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-25 21:44:49 +00:00
stdenv: set SOURCE_DATE_EPOCH to a value python supports
in nix-shell this value breaks the build because python's packaging refuses to build timestamps that date before 1980.
This commit is contained in:
parent
8576d24b2a
commit
bc4927a526
@ -219,12 +219,13 @@ printWords() {
|
|||||||
# Initialisation.
|
# Initialisation.
|
||||||
|
|
||||||
|
|
||||||
# Set a fallback default value for SOURCE_DATE_EPOCH, used by some
|
# Set a fallback default value for SOURCE_DATE_EPOCH, used by some build tools
|
||||||
# build tools to provide a deterministic substitute for the "current"
|
# to provide a deterministic substitute for the "current" time. Note that
|
||||||
# time. Note that 1 = 1970-01-01 00:00:01. We don't use 0 because it
|
# 315532800 = 1980-01-01 12:00:00. We use this date because python's wheel
|
||||||
# confuses some applications.
|
# implementation uses zip archive and zip does not support dates going back to
|
||||||
|
# 1970.
|
||||||
export SOURCE_DATE_EPOCH
|
export SOURCE_DATE_EPOCH
|
||||||
: ${SOURCE_DATE_EPOCH:=1}
|
: ${SOURCE_DATE_EPOCH:=315532800}
|
||||||
|
|
||||||
|
|
||||||
# Wildcard expansions that don't match should expand to an empty list.
|
# Wildcard expansions that don't match should expand to an empty list.
|
||||||
|
Loading…
Reference in New Issue
Block a user