From 6b4cad201b4fee6bd7cb692e253275d253a3abf4 Mon Sep 17 00:00:00 2001 From: chayleaf Date: Sun, 8 Oct 2023 08:23:29 +0700 Subject: [PATCH] gimp: fix launch without icon theme --- pkgs/gimp.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/gimp.nix b/pkgs/gimp.nix index a62fdf5..b50ffde 100644 --- a/pkgs/gimp.nix +++ b/pkgs/gimp.nix @@ -100,11 +100,9 @@ in gimp.overrideAttrs (old: rec { "-Dappdata-test=disabled" ]; enableParallelBuilding = false; - env = old.env // { - GIO_EXTRA_MODULES = "${glib-networking}/lib/gio/modules"; - }; + env = old.env // { GIO_EXTRA_MODULES = "${glib-networking}/lib/gio/modules"; }; preConfigure = ""; - postPatch = '' + postPatch = '' patchShebangs \ app/tests/create_test_env.sh \ tools/gimp-mkenums @@ -126,7 +124,10 @@ in gimp.overrideAttrs (old: rec { ''; 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 = '' moveToOutput "share/doc" "$devdoc"