Skip to content
Snippets Groups Projects
Commit f7dbeb37 authored by Alex Kost's avatar Alex Kost
Browse files

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.
parent 4655f515
No related branches found
No related tags found
No related merge requests found
...@@ -576,6 +576,9 @@ (define (elapsed-time end start) ...@@ -576,6 +576,9 @@ (define (elapsed-time end start)
;; Encoding/decoding errors shouldn't be silent. ;; Encoding/decoding errors shouldn't be silent.
(fluid-set! %default-port-conversion-strategy 'error) (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 ;; The trick is to #:allow-other-keys everywhere, so that each procedure in
;; PHASES can pick the keyword arguments it's interested in. ;; PHASES can pick the keyword arguments it's interested in.
(every (match-lambda (every (match-lambda
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment