summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPascal Wittmann <mail@pascal-wittmann.de>2015-06-30 15:41:22 +0200
committerPascal Wittmann <mail@pascal-wittmann.de>2015-06-30 15:45:09 +0200
commit16406e63b310e832b017bf9ef0473a6aa792f7da (patch)
treeed2f3779e757d7fc5082e40ad1418db1bbbb61ad /pkgs
parent3dd09ed0696cc9823b398ce64a7a7440b6661278 (diff)
downloadnixlib-16406e63b310e832b017bf9ef0473a6aa792f7da.tar
nixlib-16406e63b310e832b017bf9ef0473a6aa792f7da.tar.gz
nixlib-16406e63b310e832b017bf9ef0473a6aa792f7da.tar.bz2
nixlib-16406e63b310e832b017bf9ef0473a6aa792f7da.tar.lz
nixlib-16406e63b310e832b017bf9ef0473a6aa792f7da.tar.xz
nixlib-16406e63b310e832b017bf9ef0473a6aa792f7da.tar.zst
nixlib-16406e63b310e832b017bf9ef0473a6aa792f7da.zip
xdg_utils: fix handling of runtime dependencies, closes #8564
'egrep' was substituted with the path to the grep binary
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/X11/xdg-utils/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/X11/xdg-utils/default.nix b/pkgs/tools/X11/xdg-utils/default.nix
index 5f5619002d61..7ba20480b6f5 100644
--- a/pkgs/tools/X11/xdg-utils/default.nix
+++ b/pkgs/tools/X11/xdg-utils/default.nix
@@ -17,8 +17,8 @@ stdenv.mkDerivation rec {
     for item in $out/bin/*; do
       substituteInPlace $item --replace "cut " "${coreutils}/bin/cut "
       substituteInPlace $item --replace "sed " "${gnused}/bin/sed "
-      substituteInPlace $item --replace "grep " "${gnugrep}/bin/grep "
       substituteInPlace $item --replace "egrep " "${gnugrep}/bin/egrep "
+      sed -i $item -e "s#[^e]grep #${gnugrep}/bin/grep #g" # Don't replace 'egrep'
       substituteInPlace $item --replace "which " "${which}/bin/which "
       substituteInPlace $item --replace "/usr/bin/file" "${file}/bin/file"
     done