mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 22:32:58 +03:00
53fbbe3262
Add necessary paths to the environment so that applications can find icons.
20 lines
621 B
Bash
20 lines
621 B
Bash
make_gtk_applications_find_pixbuf_loaders() {
|
|
|
|
# set pixbuf loaders.cache for this package
|
|
mkdir -p "$out/lib/$name/gdk-pixbuf"
|
|
|
|
if [ -f "$1/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache" ]; then
|
|
cat "$1/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache" >> "$out/lib/$name/gdk-pixbuf/loaders.cache"
|
|
fi
|
|
|
|
if [ -f "$1/lib/gdk-pixbuf/loaders.cache" ]; then
|
|
cat "$1/lib/gdk-pixbuf/loaders.cache" >> "$out/lib/$name/gdk-pixbuf/loaders.cache"
|
|
fi
|
|
|
|
# note, this is not a search path
|
|
export GDK_PIXBUF_MODULE_FILE=$(readlink -e "$out/lib/$name/gdk-pixbuf/loaders.cache")
|
|
|
|
}
|
|
|
|
envHooks+=(make_gtk_applications_find_pixbuf_loaders)
|