mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 04:29:25 -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)
|
("flex" ,flex)
|
||||||
("pkg-config" ,pkg-config)
|
("pkg-config" ,pkg-config)
|
||||||
("python" ,python-wrapper)
|
("python" ,python-wrapper)
|
||||||
("which" ,which)))
|
("which" ,which)
|
||||||
|
("ziptime" ,ziptime)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("bluez" ,bluez)
|
`(("bluez" ,bluez)
|
||||||
("boost" ,boost)
|
("boost" ,boost)
|
||||||
|
@ -1216,6 +1217,13 @@ (define-public libreoffice
|
||||||
"/bin/xdg-open")))
|
"/bin/xdg-open")))
|
||||||
|
|
||||||
#t))
|
#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
|
(add-after 'install 'bin-and-desktop-install
|
||||||
;; Create 'soffice' and 'libreoffice' symlinks to the executable
|
;; Create 'soffice' and 'libreoffice' symlinks to the executable
|
||||||
;; script.
|
;; script.
|
||||||
|
|
Loading…
Reference in a new issue