mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-07-13 20:24:06 +02:00
build-system/gnu: Set 'SOURCE_DATE_EPOCH'.
Suggested by Ludovic Courtès <ludo@gnu.org>. * guix/build/gnu-build-system.scm (gnu-build): Set SOURCE_DATE_EPOCH for deterministic builds.
This commit is contained in:
@@ -576,6 +576,9 @@ in order. Return #t if all the PHASES succeeded, #f otherwise."
|
||||
;; Encoding/decoding errors shouldn't be silent.
|
||||
(fluid-set! %default-port-conversion-strategy 'error)
|
||||
|
||||
;; Avoid non-determinism related to generated timestamps.
|
||||
(setenv "SOURCE_DATE_EPOCH" "1")
|
||||
|
||||
;; The trick is to #:allow-other-keys everywhere, so that each procedure in
|
||||
;; PHASES can pick the keyword arguments it's interested in.
|
||||
(every (match-lambda
|
||||
|
||||
Reference in New Issue
Block a user