summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/X11/xdg-utils
diff options
context:
space:
mode:
authorzimbatm <zimbatm@zimbatm.com>2016-03-20 00:50:39 +0000
committerzimbatm <zimbatm@zimbatm.com>2016-03-20 00:52:10 +0000
commit621ed3599103aa5050e71259cb55dd37d60ac31a (patch)
tree6f3edb12bb92ccbdb52a0a6b13ee50274caf6e2c /pkgs/tools/X11/xdg-utils
parentaf1e32acd34de356ff7b5267f4e56d1caf555b3e (diff)
xdg_utils: fixes #14060
Diffstat (limited to 'pkgs/tools/X11/xdg-utils')
-rw-r--r--pkgs/tools/X11/xdg-utils/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/X11/xdg-utils/default.nix b/pkgs/tools/X11/xdg-utils/default.nix
index 7df698dc3ae9..e7233d0f7145 100644
--- a/pkgs/tools/X11/xdg-utils/default.nix
+++ b/pkgs/tools/X11/xdg-utils/default.nix
@@ -39,6 +39,12 @@ stdenv.mkDerivation rec {
sed "s# $(basename "$tool") # $tool #g" -i "$out"/bin/*
done
+ substituteInPlace $out/bin/xdg-open \
+ --replace "/usr/bin/printf" "${coreutils}/bin/printf"
+
+ substituteInPlace $out/bin/xdg-mime \
+ --replace "/usr/bin/file" "${file}/bin/file"
+
sed 's# which # type -P #g' -i "$out"/bin/*
'';