gnu: lirc: Build reproducibly.

* gnu/packages/lirc.scm (lirc)[arguments]: Add a new 'omit-pip-sourceball phase.
This commit is contained in:
Tobias Geerinckx-Rice 2023-01-15 01:00:29 +01:00
parent 598e43c9df
commit ea37595a7c
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -83,7 +83,15 @@ (define-public lirc
(substitute* "doc/Makefile.in"
(("^vardocs_DATA =.*") "vardocs_DATA =\n")
(("^varimage_DATA =.*") "varimage_DATA =\n"))
#t)))))
#t))
(add-after 'unpack 'omit-pip-sourceball
;; make install invokes setup.py sdist, which has no known (to
;; nckx) way to enforce mtimes. The utility of this is questionable,
;; IMO: let's disable it entirely & listen for complaints, if any.
(lambda _
(substitute* "Makefile.in"
(("(PYTHON_TARBALL.*=).*" _ tarball=)
(string-append tarball= "\n"))))))))
(native-inputs
(list pkg-config libxslt))
(inputs