build: set SOURCE_DATE_EPOCH

This commit is contained in:
Bo Anderson 2021-04-14 16:37:11 +01:00
parent bc9b98aa0b
commit 1a81257721
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -144,6 +144,9 @@ class Build
# which is not known until after the formula has been staged.
ENV["HOMEBREW_FORMULA_PREFIX"] = formula.prefix
# https://reproducible-builds.org/docs/source-date-epoch/
ENV["SOURCE_DATE_EPOCH"] = formula.source_modified_time.to_i.to_s
formula.patch
if args.git?