diff --git a/pkgs/tools/X11/xdg-utils/default.nix b/pkgs/tools/X11/xdg-utils/default.nix index f54ef825fa0f..53a43dde3030 100644 --- a/pkgs/tools/X11/xdg-utils/default.nix +++ b/pkgs/tools/X11/xdg-utils/default.nix @@ -2,6 +2,7 @@ , file, libxslt, docbook_xml_dtd_412, docbook_xsl, xmlto , w3m, gnugrep, gnused, coreutils, xset, perlPackages , mimiSupport ? false, gawk +, glib , withXdgOpenUsePortalPatch ? true }: let @@ -56,13 +57,15 @@ stdenv.mkDerivation rec { &#' -i "$out"/bin/* substituteInPlace $out/bin/xdg-open \ - --replace "/usr/bin/printf" "${coreutils}/bin/printf" + --replace "/usr/bin/printf" "${coreutils}/bin/printf" \ + --replace "gdbus" "${glib}/bin/gdbus" substituteInPlace $out/bin/xdg-mime \ --replace "/usr/bin/file" "${file}/bin/file" substituteInPlace $out/bin/xdg-email \ - --replace "/bin/echo" "${coreutils}/bin/echo" + --replace "/bin/echo" "${coreutils}/bin/echo" \ + --replace "gdbus" "${glib}/bin/gdbus" sed 's|\bwhich\b|type -P|g' -i "$out"/bin/* '';