mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 09:33:41 +00:00
32 lines
752 B
Nix
32 lines
752 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "k6";
|
|
version = "0.38.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "grafana";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-MV5GbsXVvq99tI5LCK6VgcXRtNUfffoz3FopwPljhdA=";
|
|
};
|
|
|
|
subPackages = [ "./" ];
|
|
|
|
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";
|
|
homepage = "https://k6.io/";
|
|
changelog = "https://github.com/grafana/k6/releases/tag/v${version}";
|
|
license = licenses.agpl3Plus;
|
|
maintainers = with maintainers; [ offline bryanasdev000 ];
|
|
};
|
|
}
|