2021-12-19 01:06:50 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "k6";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "0.35.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-12-19 01:06:50 +00:00
|
|
|
owner = "grafana";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "sha256-mSVU/0OdlEfGWxO6Gn/Ji7k2pMO5jWTfxFujN08bZjU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
subPackages = [ "./" ];
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
vendorSha256 = null;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
|
|
$out/bin/k6 version | grep ${version} > /dev/null
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A modern load testing tool, using Go and JavaScript";
|
2020-05-29 06:06:01 +00:00
|
|
|
homepage = "https://k6.io/";
|
2021-12-19 01:06:50 +00:00
|
|
|
changelog = "https://github.com/grafana/k6/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.agpl3Plus;
|
2021-12-19 01:06:50 +00:00
|
|
|
maintainers = with maintainers; [ offline bryanasdev000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|