bats: add missing grep dependency

This commit is contained in:
Tobias Pflug 2018-10-27 15:18:53 +02:00
parent 244f27b4be
commit 8284f09dcd
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchzip }:
{ stdenv, fetchzip, gnugrep }:
stdenv.mkDerivation rec {
name = "bats-${version}";
@ -9,7 +9,10 @@ stdenv.mkDerivation rec {
sha256 = "1kkh0j2alql3xiyhw9wsvcc3xclv52g0ivgyk8h85q9fn3qdqakz";
};
patchPhase = "patchShebangs ./install.sh";
patchPhase = ''
patchShebangs ./install.sh
substituteInPlace ./libexec/bats-core/bats-format-tap-stream --replace grep ${gnugrep}/bin/grep
'';
installPhase = "./install.sh $out";