gimp: fix launch without icon theme

This commit is contained in:
chayleaf 2023-10-08 08:23:29 +07:00
parent bb180360b9
commit 6b4cad201b

View file

@ -100,11 +100,9 @@ in gimp.overrideAttrs (old: rec {
"-Dappdata-test=disabled" "-Dappdata-test=disabled"
]; ];
enableParallelBuilding = false; enableParallelBuilding = false;
env = old.env // { env = old.env // { GIO_EXTRA_MODULES = "${glib-networking}/lib/gio/modules"; };
GIO_EXTRA_MODULES = "${glib-networking}/lib/gio/modules";
};
preConfigure = ""; preConfigure = "";
postPatch = '' postPatch = ''
patchShebangs \ patchShebangs \
app/tests/create_test_env.sh \ app/tests/create_test_env.sh \
tools/gimp-mkenums tools/gimp-mkenums
@ -126,7 +124,10 @@ in gimp.overrideAttrs (old: rec {
''; '';
preFixup = '' preFixup = ''
gappsWrapperArgs+=(--prefix PATH : "${lib.makeBinPath [ graphviz ]}:$out/bin") gappsWrapperArgs+=(\
--prefix PATH : "${lib.makeBinPath [ graphviz ]}:$out/bin" \
--suffix XDG_DATA_DIRS : "${gnome.adwaita-icon-theme}/share" \
)
''; '';
postFixup = '' postFixup = ''
moveToOutput "share/doc" "$devdoc" moveToOutput "share/doc" "$devdoc"