mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 04:29:25 -05:00
gnu: transmission: Fix loading icons in pure environments.
* gnu/packages/bittorrent.scm (transmission)[arguments]: Add a 'wrap-program' phase that sets GDK_PIXBUF_MODULE_FILE.
This commit is contained in:
parent
15fdeaeb2d
commit
2c9009f9fe
1 changed files with 8 additions and 1 deletions
|
@ -136,7 +136,14 @@ (define-public transmission
|
|||
(lambda* (#:key outputs #:allow-other-keys #:rest args)
|
||||
(apply (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)
|
||||
#:glib-or-gtk-wrap-excluded-outputs (list "out")
|
||||
args))))))
|
||||
args)))
|
||||
(add-after 'glib-or-gtk-wrap 'wrap-program
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(wrap-program (string-append #$output:gui "/bin/transmission-gtk")
|
||||
;; Wrapping GDK_PIXBUF_MODULE_FILE allows Transmission to load
|
||||
;; its own icons in pure environments.
|
||||
`("GDK_PIXBUF_MODULE_FILE" =
|
||||
(,(getenv "GDK_PIXBUF_MODULE_FILE")))))))))
|
||||
(inputs (list curl
|
||||
(list glib "bin")
|
||||
gtkmm
|
||||
|
|
Loading…
Reference in a new issue