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