xdg_utils: fix handling of runtime dependencies, closes #8564

'egrep' was substituted with the path to the grep binary
This commit is contained in:
Pascal Wittmann 2015-06-30 15:41:22 +02:00
parent 3dd09ed069
commit 16406e63b3

View file

@ -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