Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gdk-pixbuf: Use a different GDK_PIXBUF_MODULE_FILE environment variable on 32-bit and 64-bit systems. #60254

Draft
wants to merge 1 commit into
base: staging
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/stdenv.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2563,7 +2563,7 @@ addEnvHooks "$hostOffset" myBashFunction
</term>
<listitem>
<para>
Exports <envar>GDK_PIXBUF_MODULE_FILE</envar> environment variable to
Exports <envar>GDK_PIXBUF_MODULE_FILE32/64</envar> environment variable to
the builder. Add librsvg package to <varname>buildInputs</varname> to
get svg support.
</para>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ let
makeWrapper ${pkgs.lightdm-enso-os-greeter}/bin/pantheon-greeter \
$out/greeter \
--prefix PATH : "${pkgs.glibc.bin}/bin" \
--set GDK_PIXBUF_MODULE_FILE "${pkgs.librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache" \
--set ${pkgs.gdk_pixbuf.moduleFileVar} "${pkgs.librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache" \
--set GTK_PATH "${theme}:${pkgs.gtk3.out}" \
--set GTK_EXE_PREFIX "${theme}" \
--set GTK_DATA_PREFIX "${theme}" \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ let
makeWrapper ${pkgs.lightdm_gtk_greeter}/sbin/lightdm-gtk-greeter \
$out/greeter \
--prefix PATH : "${lib.getBin pkgs.stdenv.cc.libc}/bin" \
--set GDK_PIXBUF_MODULE_FILE "${pkgs.librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache" \
--set ${pkgs.gdk_pixbuf.moduleFileVar} "${pkgs.librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache" \
--set GTK_PATH "${theme}:${pkgs.gtk3.out}" \
--set GTK_EXE_PREFIX "${theme}" \
--set GTK_DATA_PREFIX "${theme}" \
Expand Down
4 changes: 2 additions & 2 deletions nixos/modules/services/x11/gdk-pixbuf.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ in

# If there is any package configured in modulePackages, we generate the
# loaders.cache based on that and set the environment variable
# GDK_PIXBUF_MODULE_FILE to point to it.
# GDK_PIXBUF_MODULE_FILE32/64 to point to it.
config = mkIf (cfg.modulePackages != []) {
environment.variables = {
GDK_PIXBUF_MODULE_FILE = "${loadersCache}";
"${pkgs.gdk_pixbuf.moduleFileVar}" = "${loadersCache}";
};
};
}
6 changes: 3 additions & 3 deletions pkgs/applications/audio/pavucontrol/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ fetchurl, stdenv, pkgconfig, intltool, libpulseaudio, gtkmm3
, libcanberra-gtk3, makeWrapper, gnome3 }:
, libcanberra-gtk3, makeWrapper, gnome3, librsvg }:

stdenv.mkDerivation rec {
pname = "pavucontrol";
Expand All @@ -12,12 +12,12 @@ stdenv.mkDerivation rec {

preFixup = ''
wrapProgram "$out/bin/pavucontrol" \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
--set $gdkPixbufModuleFileVar "''${!gdkPixbufModuleFileVar}" \
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS"
'';

buildInputs = [ libpulseaudio gtkmm3 libcanberra-gtk3 makeWrapper
gnome3.adwaita-icon-theme ];
gnome3.adwaita-icon-theme librsvg ];

nativeBuildInputs = [ pkgconfig intltool ];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/editors/howl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
# Required for the program to properly load its SVG assets
postInstall = ''
wrapProgram $out/bin/howl \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
--set $gdkPixbufModuleFileVar "''${!gdkPixbufModuleFileVar}"
'';

meta = {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/graphics/ahoviewer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
postInstall = ''
wrapProgram $out/bin/ahoviewer \
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0" \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
--set $gdkPixbufModuleFileVar "''${!gdkPixbufModuleFileVar}"
'';

meta = with stdenv.lib; {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/graphics/gimp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ in stdenv.mkDerivation rec {
wrapPythonProgramsIn $out/lib/gimp/${passthru.majorVersion}/plug-ins/
wrapProgram $out/bin/gimp-${stdenv.lib.versions.majorMinor version} \
--prefix PYTHONPATH : "$PYTHONPATH" \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
--set $gdkPixbufModuleFileVar "''${!gdkPixbufModuleFileVar}"
'';

passthru = rec {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/graphics/shutter/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
--set PERL5LIB "${perlPackages.makePerlPath perlModules}" \
--prefix PATH : "${imagemagick.out}/bin" \
--suffix XDG_DATA_DIRS : "${hicolor-icon-theme}/share" \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
--set $gdkPixbufModuleFileVar "''${!gdkPixbufModuleFileVar}"
'';

meta = with stdenv.lib; {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/graphics/vimiv/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ python3Packages.buildPythonApplication rec {
makeWrapperArgs = [
"--prefix GI_TYPELIB_PATH : \"$GI_TYPELIB_PATH\""
"--suffix XDG_DATA_DIRS : \"$XDG_ICON_DIRS:$out/share\""
"--set GDK_PIXBUF_MODULE_FILE \"$GDK_PIXBUF_MODULE_FILE\""
"--set $gdkPixbufModuleFileVar \"\${!gdkPixbufModuleFileVar}\""
];

postCheck = ''
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/misc/batti/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ stdenv, fetchurl
, pkgconfig, gettext, pythonPackages
, gtk2, gdk_pixbuf, upower
, gtk2, gdk_pixbuf, librsvg, upower
, makeWrapper }:

let
Expand All @@ -16,7 +16,7 @@ in stdenv.mkDerivation rec {
};

buildInputs = with stdenv.lib;
[ pkgconfig gettext python gtk2 pygtk dbus-python gdk_pixbuf upower makeWrapper ];
[ pkgconfig gettext python gtk2 pygtk dbus-python gdk_pixbuf librsvg upower makeWrapper ];

configurePhase = "true";

Expand All @@ -28,7 +28,7 @@ in stdenv.mkDerivation rec {
python setup.py install --prefix $out
wrapProgram "$out/bin/batti" \
--set PYTHONPATH "$PYTHONPATH:$(toPythonPath $out)" \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
--set $gdkPixbufModuleFileVar "''${!gdkPixbufModuleFileVar}" \
--prefix XDG_DATA_DIRS : "$out/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH"
'';

Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/misc/dunst/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
install -Dm755 dunstify $out/bin
'' + ''
wrapProgram $out/bin/dunst \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
--set $gdkPixbufModuleFileVar "''${!gdkPixbufModuleFileVar}"
'';

meta = with stdenv.lib; {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/misc/pdfpc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ stdenv.mkDerivation rec {

postInstall = ''
wrapProgram $out/bin/pdfpc \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
--set $gdkPixbufModuleFileVar "''${!gdkPixbufModuleFileVar}"
'';

meta = with stdenv.lib; {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
, gtk2
, atk
, gdk_pixbuf
, librsvg
, cairo
, pango
, gnome3
Expand Down Expand Up @@ -101,6 +102,7 @@ let
file
gtk2
gdk_pixbuf
librsvg
];

libPath = stdenv.lib.makeLibraryPath [
Expand Down Expand Up @@ -185,7 +187,7 @@ let
--add-flags "-icaroot $ICAInstDir" \
--set ICAROOT "$ICAInstDir" \
--set GTK_PATH "${gtk2.out}/lib/gtk-2.0:${gnome3.gnome-themes-extra}/lib/gtk-2.0" \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
--set $gdkPixbufModuleFileVar "''${!gdkPixbufModuleFileVar}" \
--set LD_PRELOAD "${libredirect}/lib/libredirect.so" \
--set LD_LIBRARY_PATH "$libPath" \
--set NIX_REDIRECTS "/usr/share/zoneinfo=${tzdata}/share/zoneinfo:/etc/zoneinfo=${tzdata}/share/zoneinfo:/etc/timezone=$ICAInstDir/timezone"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/office/paperwork/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ python3Packages.buildPythonApplication rec {

makeWrapperArgs = [
"--set GI_TYPELIB_PATH \"$GI_TYPELIB_PATH\""
"--set GDK_PIXBUF_MODULE_FILE \"$GDK_PIXBUF_MODULE_FILE\""
"--set $gdkPixbufModuleFileVar \"\${!gdkPixbufModuleFileVar}\""
"--prefix XDG_DATA_DIRS : \"$out/share\""
"--suffix XDG_DATA_DIRS : \"$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH\""
];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/office/tryton/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ python2Packages.buildPythonApplication rec {
goocanvas2
];
makeWrapperArgs = [
''--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"''
''--set $gdkPixbufModuleFileVar "''${!gdkPixbufModuleFileVar}"''
''--set GI_TYPELIB_PATH "$GI_TYPELIB_PATH"''
''--suffix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH"''
];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/video/key-mon/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pythonPackages.buildPythonApplication rec {
doCheck = false;

preFixup = ''
export makeWrapperArgs="--set GDK_PIXBUF_MODULE_FILE $GDK_PIXBUF_MODULE_FILE"
export makeWrapperArgs="--set $gdkPixbufModuleFileVar \"''${!gdkPixbufModuleFileVar}\""
'';

meta = with stdenv.lib; {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/window-managers/awesome/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ with luaPackages; stdenv.mkDerivation rec {

postInstall = ''
wrapProgram $out/bin/awesome \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
--set $gdkPixbufModuleFileVar "''${!gdkPixbufModuleFileVar}" \
--add-flags '--search ${lgi}/lib/lua/${lua.luaversion}' \
--add-flags '--search ${lgi}/share/lua/${lua.luaversion}' \
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
Expand Down
4 changes: 2 additions & 2 deletions pkgs/build-support/setup-hooks/wrap-gapps-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ wrapGAppsHook() {
[ -z "$wrapGAppsHookHasRun" ] || return 0
wrapGAppsHookHasRun=1

if [ -n "$GDK_PIXBUF_MODULE_FILE" ]; then
gappsWrapperArgs+=(--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE")
if [ -n "${!gdkPixbufModuleFileVar}" ]; then
gappsWrapperArgs+=(--set $gdkPixbufModuleFileVar "${!gdkPixbufModuleFileVar}")
fi

if [ -n "$XDG_ICON_DIRS" ]; then
Expand Down
4 changes: 2 additions & 2 deletions pkgs/desktops/maxx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
buildInputs = [
stdenv.cc.cc libX11 libXext libXi libXau libXrender libXft libXmu libSM libXcomposite libXfixes libXpm
libXinerama libXdamage libICE libXtst libXaw fontconfig pango cairo glib libxml2 atk gtk2
gdk_pixbuf libGL ncurses5
gdk_pixbuf libGL ncurses5 librsvg
];

buildPhase = ''
Expand All @@ -46,7 +46,7 @@ stdenv.mkDerivation rec {

wrapProgram $maxx/etc/skel/Xsession.dt \
--prefix GTK_PATH : "${gtk-engine-murrine}/lib/gtk-2.0:${gtk_engines}/lib/gtk-2.0" \
--prefix GDK_PIXBUF_MODULE_FILE : "$(echo ${librsvg.out}/lib/gdk-pixbuf-2.0/*/loaders.cache)"
--set $gdkPixbufModuleFileVar "''${!gdkPixbufModuleFileVar}"

while IFS= read -r -d ''$'\0' i; do
if isExecutable "$i"; then
Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/compilers/cudatoolkit/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib, stdenv, makeWrapper, fetchurl, requireFile, perl, ncurses5, expat, python27, zlib
, gcc48, gcc49, gcc5, gcc6, gcc7
, xorg, gtk2, gdk_pixbuf, glib, fontconfig, freetype, unixODBC, alsaLib, glibc
, xorg, gtk2, gdk_pixbuf, librsvg, glib, fontconfig, freetype, unixODBC, alsaLib, glibc
}:

let
Expand Down Expand Up @@ -40,7 +40,7 @@ let
outputs = [ "out" "lib" "doc" ];

nativeBuildInputs = [ perl makeWrapper ];
buildInputs = [ gdk_pixbuf ]; # To get $GDK_PIXBUF_MODULE_FILE via setup-hook
buildInputs = [ gdk_pixbuf librsvg ]; # To get $gdkPixbufModuleFileVar via setup-hook
runtimeDependencies = [
ncurses5 expat python zlib glibc
xorg.libX11 xorg.libXext xorg.libXrender xorg.libXt xorg.libXtst xorg.libXi xorg.libXext
Expand Down Expand Up @@ -126,7 +126,7 @@ let
postInstall = ''
for b in nvvp nsight; do
wrapProgram "$out/bin/$b" \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
--set $gdkPixbufModuleFileVar "''${!gdkPixbufModuleFileVar}"
done
'';

Expand Down
4 changes: 3 additions & 1 deletion pkgs/development/libraries/flatpak/unset-env-vars.patch
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
--- a/common/flatpak-run.c
+++ b/common/flatpak-run.c
@@ -1192,6 +1192,7 @@ static const ExportData default_exports[] = {
@@ -1192,6 +1192,9 @@ static const ExportData default_exports[] = {
{"PERLLIB", NULL},
{"PERL5LIB", NULL},
{"XCURSOR_PATH", NULL},
+ {"GDK_PIXBUF_MODULE_FILE", NULL},
+ {"GDK_PIXBUF_MODULE_FILE32", NULL},
+ {"GDK_PIXBUF_MODULE_FILE64", NULL},
};

static const ExportData no_ld_so_cache_exports[] = {
16 changes: 16 additions & 0 deletions pkgs/development/libraries/gdk-pixbuf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
let
pname = "gdk-pixbuf";
version = "2.38.1";

# The library checks for the GDK_PIXBUF_MODULE_FILE environment variable to find
# the cache file that specifies supported image formats and associated libraries.
# We patch the code to use a different variable name on 32-bit and 64-bit systems
# (GDK_PIXBUF_MODULE_FILE32/64) to prevent 32-bit programs from trying to load
# 64-bit plugins.
origModuleFileVar = "GDK_PIXBUF_MODULE_FILE";
moduleFileVar = origModuleFileVar + (if stdenv.is64bit then "64" else "32");

in stdenv.mkDerivation rec {
name = "${pname}-${version}";

Expand Down Expand Up @@ -41,11 +50,16 @@ in stdenv.mkDerivation rec {
"-Dgio_sniffing=false"
];

# For substitution in setup-hook.sh.
gdkPixbufModuleFileVar = moduleFileVar;

postPatch = ''
chmod +x build-aux/* # patchShebangs only applies to executables
patchShebangs build-aux

substituteInPlace tests/meson.build --subst-var-by installedtestsprefix "$installedTests"

find . -type f -print0 | xargs -0 sed -i 's/${origModuleFileVar}/${moduleFileVar}/g'
'';

postInstall =
Expand Down Expand Up @@ -88,6 +102,8 @@ in stdenv.mkDerivation rec {

# gdk_pixbuf_moduledir variable from gdk-pixbuf-2.0.pc
moduleDir = "lib/gdk-pixbuf-2.0/2.10.0/loaders";

inherit moduleFileVar;
};

meta = with stdenv.lib; {
Expand Down
11 changes: 7 additions & 4 deletions pkgs/development/libraries/gdk-pixbuf/setup-hook.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
# Expose this, for example to use when generating wrappers.
export gdkPixbufModuleFileVar="@gdkPixbufModuleFileVar@"

findGdkPixbufLoaders() {

# choose the longest loaders.cache
local loadersCache="$1/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
if [ -f "$loadersCache" ]; then
if [ -f "$GDK_PIXBUF_MODULE_FILE" ]; then
if [ $(cat "$loadersCache"|wc -l) -gt $(cat "$GDK_PIXBUF_MODULE_FILE"|wc -l) ]; then
export GDK_PIXBUF_MODULE_FILE="$loadersCache"
if [ -f "${@gdkPixbufModuleFileVar@}" ]; then
if [ $(cat "$loadersCache"|wc -l) -gt $(cat "$@gdkPixbufModuleFileVar@"|wc -l) ]; then
export @gdkPixbufModuleFileVar@="$loadersCache"
fi
else
export GDK_PIXBUF_MODULE_FILE="$loadersCache"
export @gdkPixbufModuleFileVar@="$loadersCache"
fi
fi

Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/librsvg/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
# It wants to add loaders and update the loaders.cache in gdk-pixbuf
# Patching the Makefiles to it creates rsvg specific loaders and the
# relevant loader.cache here.
# The loaders.cache can be used by setting GDK_PIXBUF_MODULE_FILE to
# The loaders.cache can be used by setting $gdkPixbufModuleFileVar to
# point to this file in a wrapper.
postConfigure = ''
GDK_PIXBUF=$out/lib/gdk-pixbuf-2.0/2.10.0
Expand Down
3 changes: 0 additions & 3 deletions pkgs/misc/drivers/sc-controller/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ buildPythonApplication rec {

preFixup = ''
gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : "$LD_LIBRARY_PATH")
# gdk-pixbuf setup hook can not choose between propagated librsvg
# and our librsvg with GObject introspection.
GDK_PIXBUF_MODULE_FILE=$(echo ${librsvg}/lib/gdk-pixbuf-2.0/*/loaders.cache)
'';

postFixup = ''
Expand Down
2 changes: 1 addition & 1 deletion pkgs/misc/solfege/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ in stdenv.mkDerivation rec {
set -x
wrapProgram "$out/bin/solfege" \
--prefix PYTHONPATH ':' "$PYTHONPATH" \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
--set $gdkPixbufModuleFileVar "''${!gdkPixbufModuleFileVar}"
'';

meta = with stdenv.lib; {
Expand Down
6 changes: 3 additions & 3 deletions pkgs/tools/inputmethods/ibus/wrapper.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
let
name = "ibus-with-plugins-" + (builtins.parseDrvName ibus.name).version;
env = {
buildInputs = [ ibus ] ++ plugins;
buildInputs = [ ibus librsvg ] ++ plugins;
nativeBuildInputs = [ lndir makeWrapper ];
propagatedUserEnvPackages = [ hicolor-icon-theme ];
paths = [ ibus ] ++ plugins;
Expand All @@ -23,7 +23,7 @@ let

for prog in ibus; do
wrapProgram "$out/bin/$prog" \
--set GDK_PIXBUF_MODULE_FILE ${librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
--set $gdkPixbufModuleFileVar "''${!gdkPixbufModuleFileVar}" \
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH:$out/lib/girepository-1.0" \
--prefix GIO_EXTRA_MODULES : "${stdenv.lib.getLib dconf}/lib/gio/modules" \
--set IBUS_COMPONENT_PATH "$out/share/ibus/component/" \
Expand All @@ -42,7 +42,7 @@ let

for prog in ibus-daemon; do
wrapProgram "$out/bin/$prog" \
--set GDK_PIXBUF_MODULE_FILE ${librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
--set $gdkPixbufModuleFileVar "''${!gdkPixbufModuleFileVar}" \
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH:$out/lib/girepository-1.0" \
--prefix GIO_EXTRA_MODULES : "${stdenv.lib.getLib dconf}/lib/gio/modules" \
--set IBUS_COMPONENT_PATH "$out/share/ibus/component/" \
Expand Down