autorevision: specify full paths to 'sed' and 'tee'

This commit is contained in:
Bjørn Forsman 2017-02-07 16:59:33 +01:00
parent e362a3d5c9
commit 4628724469

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, asciidoc, libxml2, docbook_xml_dtd_45, libxslt { stdenv, fetchurl, asciidoc, libxml2, docbook_xml_dtd_45, libxslt
, docbook_xsl, diffutils, coreutils, gnugrep , docbook_xsl, diffutils, coreutils, gnugrep, gnused
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -21,6 +21,8 @@ stdenv.mkDerivation rec {
sed -e "s|cmp|${diffutils}/bin/cmp|" \ sed -e "s|cmp|${diffutils}/bin/cmp|" \
-e "s|cat|${coreutils}/bin/cat|" \ -e "s|cat|${coreutils}/bin/cat|" \
-e "s|grep|${gnugrep}/bin/grep|" \ -e "s|grep|${gnugrep}/bin/grep|" \
-e "s|\<sed\>|${gnused}/bin/sed|" \
-e "s|\<tee\>|${coreutils}/bin/tee|" \
-i "$out/bin/autorevision" -i "$out/bin/autorevision"
''; '';