2018-10-27 13:18:53 +00:00
|
|
|
{ stdenv, fetchzip, gnugrep }:
|
2016-02-07 11:11:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "bats-${version}";
|
2018-08-23 19:14:59 +00:00
|
|
|
version = "1.1.0";
|
2016-02-07 11:11:31 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
2018-08-23 19:14:59 +00:00
|
|
|
url = "https://github.com/bats-core/bats-core/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "1kkh0j2alql3xiyhw9wsvcc3xclv52g0ivgyk8h85q9fn3qdqakz";
|
2016-02-07 11:11:31 +00:00
|
|
|
};
|
|
|
|
|
2018-10-27 13:18:53 +00:00
|
|
|
patchPhase = ''
|
|
|
|
patchShebangs ./install.sh
|
|
|
|
substituteInPlace ./libexec/bats-core/bats-format-tap-stream --replace grep ${gnugrep}/bin/grep
|
|
|
|
'';
|
2016-03-01 00:19:27 +00:00
|
|
|
|
2016-02-07 11:11:31 +00:00
|
|
|
installPhase = "./install.sh $out";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-08-23 19:14:59 +00:00
|
|
|
homepage = https://github.com/bats-core/bats-core;
|
2016-02-07 11:11:31 +00:00
|
|
|
description = "Bash Automated Testing System";
|
|
|
|
maintainers = [ maintainers.lnl7 ];
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|