3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: xorg: Make font packages bit-reproducible.

* gnu/packages/xorg.scm (%xorg-font-origin): Add 'snippet' and 'modules'
fields.
This commit is contained in:
Ludovic Courtès 2017-01-14 19:37:52 +01:00
parent 58d222ed0b
commit ed824a36c4
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -404,7 +404,14 @@ Resources file.")
(method url-fetch)
(uri (string-append "mirror://xorg/individual/font/" font "-"
version ".tar.bz2"))
(sha256 hash)))
(sha256 hash)
(modules '((guix build utils)))
(snippet
;; Do not include timestamps in '.pcf.gz' files.
'(substitute* "Makefile.in"
(("^COMPRESS = (.*)$" _ rest)
(string-append "COMPRESS = " (string-trim-right rest)
" --no-name\n"))))))
(define-syntax-rule (xorg-font-origin font version hash)
"Expand to the 'origin' form for the given Xorg font package."