xdg-utils: fix missing glib dependency for xdg-open.in and xdg-email.in

This commit is contained in:
Luna Nova 2022-10-21 14:00:14 -07:00 committed by Bjørn Forsman
parent 7a908bec55
commit 17b70a2635

View file

@ -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/*
'';