15 # Get packages to generate the cache for. We always include gdk-pixbuf.
21 # Generate the cache file by running gdk-pixbuf-query-loaders for each
22 # package and concatenating the results.
23 runCommand "gdk-pixbuf-loaders.cache" {
24 preferLocalBuild = true;
27 for package in ${lib.escapeShellArgs loaderPackages}; do
28 module_dir="$package/${gdk-pixbuf.moduleDir}"
29 if [[ ! -d "$module_dir" ]]; then
30 echo "Error: gdkPixbufCacheBuilder: Passed package “''${package}” does not contain GdkPixbuf loaders in “${gdk-pixbuf.moduleDir}”." 1>&2
33 GDK_PIXBUF_MODULEDIR="$module_dir" \
34 ${stdenv.hostPlatform.emulator buildPackages} ${gdk-pixbuf.dev}/bin/gdk-pixbuf-query-loaders