~ruther/guix-local

f7dbeb376b42e95bc66dcf4cfa283e912f5e7aa4 — Alex Kost 10 years ago 4655f51
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.
1 files changed, 3 insertions(+), 0 deletions(-)

M guix/build/gnu-build-system.scm
M guix/build/gnu-build-system.scm => guix/build/gnu-build-system.scm +3 -0
@@ 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