gnu: texlive-fonts-amsfonts: Make build reproducible.

* gnu/packages/tex.scm (texlive-fonts-amsfonts)[arguments]<#:phases>[build]:
Make build reproducible.
This commit is contained in:
Danny Milosavljevic 2018-03-21 01:34:34 +01:00
parent af23710ff5
commit db6609bd10
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -760,6 +760,8 @@ (define-public texlive-fonts-amsfonts
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(let ((mf (assoc-ref inputs "texlive-metafont-base")) (let ((mf (assoc-ref inputs "texlive-metafont-base"))
(cwd (getcwd))) (cwd (getcwd)))
;; Make METAFONT reproducible
(setenv "SOURCE_DATE_EPOCH" "1")
;; Tell mf where to find mf.base ;; Tell mf where to find mf.base
(setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c")) (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
;; Tell mf where to look for source files ;; Tell mf where to look for source files