mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 22:26:40 -05: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:
parent
58d222ed0b
commit
ed824a36c4
1 changed files with 8 additions and 1 deletions
|
@ -404,7 +404,14 @@ (define (%xorg-font-origin font version hash)
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "mirror://xorg/individual/font/" font "-"
|
(uri (string-append "mirror://xorg/individual/font/" font "-"
|
||||||
version ".tar.bz2"))
|
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)
|
(define-syntax-rule (xorg-font-origin font version hash)
|
||||||
"Expand to the 'origin' form for the given Xorg font package."
|
"Expand to the 'origin' form for the given Xorg font package."
|
||||||
|
|
Loading…
Reference in a new issue