mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
xdg-utils: fix missing glib dependency for xdg-open.in and xdg-email.in
This commit is contained in:
parent
7a908bec55
commit
17b70a2635
1 changed files with 5 additions and 2 deletions
|
@ -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/*
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue