diff options
author | Clément Lassieur <clement@lassieur.org> | 2023-09-27 12:58:04 +0200 |
---|---|---|
committer | Clément Lassieur <clement@lassieur.org> | 2023-09-27 13:03:45 +0200 |
commit | 2c9009f9feec33531c261818b2091b814727cd94 (patch) | |
tree | c51409678bc125596eead992c13f38956df26b4a /gnu/packages | |
parent | 15fdeaeb2d4df755811db92cc7c3c7cb19155dec (diff) | |
download | guix-2c9009f9feec33531c261818b2091b814727cd94.tar.gz guix-2c9009f9feec33531c261818b2091b814727cd94.zip |
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.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/bittorrent.scm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/packages/bittorrent.scm b/gnu/packages/bittorrent.scm index 3b989c5af4..64777f5667 100644 --- a/gnu/packages/bittorrent.scm +++ b/gnu/packages/bittorrent.scm @@ -136,7 +136,14 @@ (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 |