mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 06:06:53 -05:00
gnu: libreoffice: Build reproducibly.
* gnu/packages/libreoffice.scm (libreoffice)[native-inputs]: Add ziptime. [arguments]: Add a 'reset-zip-timestamps phase that invokes it.
This commit is contained in:
parent
b9f8e36e5b
commit
0d5578c12b
1 changed files with 9 additions and 1 deletions
|
@ -1102,7 +1102,8 @@ (define-public libreoffice
|
|||
("flex" ,flex)
|
||||
("pkg-config" ,pkg-config)
|
||||
("python" ,python-wrapper)
|
||||
("which" ,which)))
|
||||
("which" ,which)
|
||||
("ziptime" ,ziptime)))
|
||||
(inputs
|
||||
`(("bluez" ,bluez)
|
||||
("boost" ,boost)
|
||||
|
@ -1216,6 +1217,13 @@ (define-public libreoffice
|
|||
"/bin/xdg-open")))
|
||||
|
||||
#t))
|
||||
(add-after 'install 'reset-zip-timestamps
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((out (assoc-ref outputs "out")))
|
||||
(for-each (lambda (file)
|
||||
(invoke "ziptime" file))
|
||||
;; So many different extensions for .zip files.
|
||||
(find-files out "\\.(bau|dat|otp|ott|zip)$")))))
|
||||
(add-after 'install 'bin-and-desktop-install
|
||||
;; Create 'soffice' and 'libreoffice' symlinks to the executable
|
||||
;; script.
|
||||
|
|
Loading…
Reference in a new issue