Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
20 lines
824 B
Bash
20 lines
824 B
Bash
# shellcheck shell=bash
|
||
|
||
# Packages often run gtk-update-icon-cache to include their icons in themes’ icon cache.
|
||
# However, since each package is installed to its own prefix, the files will only collide.
|
||
dropIconThemeCache() {
|
||
if [[ -z "${dontDropIconThemeCache:-}" ]]; then
|
||
local icondir="${out:?}/share/icons"
|
||
if [[ -d "${icondir}" ]]; then
|
||
# App icons are supposed to go to hicolor theme, since it is a fallback theme as per [icon-theme-spec], but some might still choose to install stylized icons to other themes.
|
||
find "${icondir}" -name 'icon-theme.cache' -print0 \
|
||
| while IFS= read -r -d '' file; do
|
||
echo "Removing ${file}"
|
||
rm -f "${file}"
|
||
done
|
||
fi
|
||
fi
|
||
}
|
||
|
||
appendToVar preFixupPhases dropIconThemeCache
|