me
/
guix
Archived
1
0
Fork 0

gnu: libreoffice: Build reproducibly.

* gnu/packages/libreoffice.scm (libreoffice)[native-inputs]: Add ziptime.
[arguments]: Add a 'reset-zip-timestamps phase that invokes it.
master
Tobias Geerinckx-Rice 2020-11-30 21:15:44 +01:00
parent b9f8e36e5b
commit 0d5578c12b
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 9 additions and 1 deletions

View File

@ -1102,7 +1102,8 @@ converting QuarkXPress file format. It supports versions 3.1 to 4.1.")
("flex" ,flex)
("pkg-config" ,pkg-config)
("python" ,python-wrapper)
("which" ,which)))
("which" ,which)
("ziptime" ,ziptime)))
(inputs
`(("bluez" ,bluez)
("boost" ,boost)
@ -1216,6 +1217,13 @@ converting QuarkXPress file format. It supports versions 3.1 to 4.1.")
"/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.