diff options
| author | Luna Nova <git@lunnova.dev> | 2022-10-21 14:00:14 -0700 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2023-01-10 16:21:22 +0000 |
| commit | f0317e7ec93e5c5094f54ba98798eb13df36fffb (patch) | |
| tree | 2f43b1478bf821559940a17255cf9224799a2d35 | |
| parent | nixos/xdg/portal: add option `xdgOpenUsePortal` which sets `NIXOS_XDG_OPEN_US... (diff) | |
| download | nixpkgs-origin/backport-197118-to-release-22.11.tar.gz | |
xdg-utils: fix missing glib dependency for xdg-open.in and xdg-email.inorigin/backport-197118-to-release-22.11
(cherry picked from commit 856566f3654381a75aade0e2f3d5ceb8b5e9617e)
| -rw-r--r-- | pkgs/tools/X11/xdg-utils/default.nix | 7 |
1 files changed, 5 insertions, 2 deletions
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/* ''; |
