Merge pull request #49261 from holidaycheck/fix-bats

bats: add missing grep dependency
This commit is contained in:
Daiderd Jordan 2018-10-27 14:43:54 +01:00 committed by GitHub
commit 6e677351aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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";