gdk-pixbuf: check for writable $out/.., closes #2115
This commit is contained in:
parent
2a4282c811
commit
4a3508ad1a
@ -1,19 +1,25 @@
|
||||
make_gtk_applications_find_pixbuf_loaders() {
|
||||
findGdkPixbufLoaders() {
|
||||
|
||||
# set pixbuf loaders.cache for this package
|
||||
mkdir -p "$out/lib/$name/gdk-pixbuf"
|
||||
if [ -z "$IN_NIX_SHELL" ]; then
|
||||
|
||||
# set pixbuf loaders.cache for this package
|
||||
|
||||
local loadersDir="$out/lib/gdk-pixbuf-loaders-2.0/$name"
|
||||
mkdir -p "$loadersDir"
|
||||
|
||||
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" >> "$loadersDir/loaders.cache"
|
||||
fi
|
||||
|
||||
if [ -f "$1/lib/gdk-pixbuf/loaders.cache" ]; then
|
||||
cat "$1/lib/gdk-pixbuf/loaders.cache" >> "$loadersDir/loaders.cache"
|
||||
fi
|
||||
|
||||
# note, this is not a search path
|
||||
export GDK_PIXBUF_MODULE_FILE=$(readlink -e "$loadersDir/loaders.cache")
|
||||
|
||||
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)
|
||||
envHooks+=(findGdkPixbufLoaders)
|
||||
|
Loading…
Reference in New Issue
Block a user