diff options
author | Alex Kost <alezost@gmail.com> | 2015-11-14 14:04:43 +0300 |
---|---|---|
committer | Alex Kost <alezost@gmail.com> | 2015-11-14 21:59:37 +0300 |
commit | f7dbeb376b42e95bc66dcf4cfa283e912f5e7aa4 (patch) | |
tree | 79e08cbfaf890421f9a9771a1f2ecf87e3002564 /guix | |
parent | 4655f515dc88dc0d76f29a6ff831a6c577563c3f (diff) | |
download | gnu-guix-f7dbeb376b42e95bc66dcf4cfa283e912f5e7aa4.tar gnu-guix-f7dbeb376b42e95bc66dcf4cfa283e912f5e7aa4.tar.gz |
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.
Diffstat (limited to 'guix')
-rw-r--r-- | guix/build/gnu-build-system.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/guix/build/gnu-build-system.scm b/guix/build/gnu-build-system.scm index ff7646b22c..92e15d131e 100644 --- a/guix/build/gnu-build-system.scm +++ b/guix/build/gnu-build-system.scm @@ -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 |