nixpkgs-suyu/pkgs/development/tools/k6/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
752 B
Nix
Raw Normal View History

2021-12-06 22:41:26 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
2021-12-06 22:41:26 +01:00
buildGoModule rec {
2019-03-20 12:42:13 +01:00
pname = "k6";
2022-03-16 08:17:09 +01:00
version = "0.37.0";
src = fetchFromGitHub {
2021-12-06 22:41:26 +01:00
owner = "grafana";
2019-03-20 12:42:13 +01:00
repo = pname;
rev = "v${version}";
2022-03-16 08:17:09 +01:00
sha256 = "sha256-5pxOg+pwa2VrEWinDadx2ZFYXiQgochbU4bCkJEezQw=";
};
subPackages = [ "./" ];
2021-12-06 22:41:26 +01:00
vendorSha256 = null;
doCheck = true;
doInstallCheck = true;
installCheckPhase = ''
$out/bin/k6 version | grep ${version} > /dev/null
'';
meta = with lib; {
description = "A modern load testing tool, using Go and JavaScript";
2020-05-24 19:06:23 +02:00
homepage = "https://k6.io/";
2021-12-06 22:41:26 +01:00
changelog = "https://github.com/grafana/k6/releases/tag/v${version}";
license = licenses.agpl3Plus;
2021-12-06 22:41:26 +01:00
maintainers = with maintainers; [ offline bryanasdev000 ];
};
}