xdg-utils: fix missing glib dependency for xdg-open.in and xdg-email.in
This commit is contained in:
parent
7a908bec55
commit
17b70a2635
|
@ -2,6 +2,7 @@
|
||||||
, file, libxslt, docbook_xml_dtd_412, docbook_xsl, xmlto
|
, file, libxslt, docbook_xml_dtd_412, docbook_xsl, xmlto
|
||||||
, w3m, gnugrep, gnused, coreutils, xset, perlPackages
|
, w3m, gnugrep, gnused, coreutils, xset, perlPackages
|
||||||
, mimiSupport ? false, gawk
|
, mimiSupport ? false, gawk
|
||||||
|
, glib
|
||||||
, withXdgOpenUsePortalPatch ? true }:
|
, withXdgOpenUsePortalPatch ? true }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -56,13 +57,15 @@ stdenv.mkDerivation rec {
|
||||||
&#' -i "$out"/bin/*
|
&#' -i "$out"/bin/*
|
||||||
|
|
||||||
substituteInPlace $out/bin/xdg-open \
|
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 \
|
substituteInPlace $out/bin/xdg-mime \
|
||||||
--replace "/usr/bin/file" "${file}/bin/file"
|
--replace "/usr/bin/file" "${file}/bin/file"
|
||||||
|
|
||||||
substituteInPlace $out/bin/xdg-email \
|
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/*
|
sed 's|\bwhich\b|type -P|g' -i "$out"/bin/*
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue