gnu: transmission: Do not embed kernel version in user agent.

* gnu/packages/bittorrent.scm (transmission)[arguments]: Add
  'remove-kernel-version phase.
This commit is contained in:
Vagrant Cascadian 2022-06-05 09:24:51 -07:00 committed by Vagrant Cascadian
parent 52cb6e6310
commit 7f85e7ce49
No known key found for this signature in database
GPG key ID: DC518FC87F9716AA

View file

@ -105,6 +105,11 @@ (define-public transmission
#:glib-or-gtk-wrap-excluded-outputs '("out")
#:phases
(modify-phases %standard-phases
;; Avoid embedding kernel version for reproducible build
(add-after 'unpack 'remove-kernel-version
(lambda _
(substitute* "third-party/miniupnpc/updateminiupnpcstrings.sh"
(("OS_VERSION=`uname -r`") "OS_VERSION=Guix"))))
(add-after 'install 'move-gui
(lambda* (#:key outputs #:allow-other-keys)
;; Move the GUI to its own output, so that "out" doesn't