mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: ungoogled-chromium: Install icons.
* gnu/packages/chromium.scm (ungoogled-chromium)[arguments]: Install icons. Signed-off-by: Marius Bakke <mbakke@fastmail.com>
This commit is contained in:
parent
b549a05353
commit
3df7b15e6c
1 changed files with 13 additions and 8 deletions
|
@ -1,5 +1,6 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2019 Marius Bakke <mbakke@fastmail.com>
|
||||
;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -650,12 +651,6 @@ (define-public ungoogled-chromium
|
|||
(scandir "." (cut regexp-exec install-regexp <>)))
|
||||
(copy-file "chrome" (string-append lib "/chromium"))
|
||||
|
||||
;; TODO: Install icons from "../../chrome/app/themes" into
|
||||
;; "out/share/icons/hicolor/$size".
|
||||
(install-file
|
||||
"product_logo_48.png"
|
||||
(string-append out "/share/icons/48x48/chromium.png"))
|
||||
|
||||
(copy-recursively "locales" locales)
|
||||
(copy-recursively "resources" resources)
|
||||
|
||||
|
@ -669,8 +664,18 @@ (define-public ungoogled-chromium
|
|||
(,(string-append lib ":" nss "/lib/nss:" mesa "/lib:"
|
||||
udev "/lib")))
|
||||
;; Avoid file manager crash. See <https://bugs.gnu.org/26593>.
|
||||
`("XDG_DATA_DIRS" ":" prefix (,(string-append gtk+ "/share"))))
|
||||
#t)))))))
|
||||
`("XDG_DATA_DIRS" ":" prefix (,(string-append gtk+ "/share")))))
|
||||
|
||||
(with-directory-excursion "chrome/app/theme/chromium"
|
||||
(for-each
|
||||
(lambda (size)
|
||||
(let ((icons (string-append out "/share/icons/hicolor/"
|
||||
size "x" size "/apps")))
|
||||
(mkdir-p icons)
|
||||
(copy-file (string-append "product_logo_" size ".png")
|
||||
(string-append icons "/chromium.png"))))
|
||||
'("22" "24" "48" "64" "128" "256")))
|
||||
#t))))))
|
||||
(native-inputs
|
||||
`(("bison" ,bison)
|
||||
("gcc" ,gcc-8)
|
||||
|
|
Loading…
Reference in a new issue