gaphor: fix double wrapping

This commit is contained in:
Matthew_Cash 2023-08-20 20:28:04 -07:00
parent 547a750222
commit 722137507f
No known key found for this signature in database
GPG key ID: 7449B33FA8E4C190

View file

@ -59,7 +59,7 @@ buildPythonApplication rec {
desktopName = "Gaphor";
};
# We need to wrap it manually to resolve all icons
# Disable automatic wrapGAppsHook to prevent double wrapping
dontWrapGApps = true;
postInstall = ''
@ -67,10 +67,11 @@ buildPythonApplication rec {
'';
preFixup = ''
wrapProgram $out/bin/gaphor \
''${gappsWrapperArgs[@]} \
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \
--set GDK_PIXBUF_MODULE_FILE "${librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
makeWrapperArgs+=(
"''${gappsWrapperArgs[@]}" \
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \
--set GDK_PIXBUF_MODULE_FILE "${librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
)
'';
meta = with lib; {