diff --git a/pkgs/by-name/ha/har-to-k6/package.nix b/pkgs/by-name/ha/har-to-k6/package.nix new file mode 100644 index 0000000000000..8529a612cd814 --- /dev/null +++ b/pkgs/by-name/ha/har-to-k6/package.nix @@ -0,0 +1,28 @@ +{ + lib, + buildNpmPackage, + fetchFromGitHub, +}: + +buildNpmPackage rec { + pname = "har-to-k6"; + version = "0.14.8"; + + src = fetchFromGitHub { + owner = "grafana"; + repo = pname; + rev = "v${version}"; + hash = "sha256-jfMfuEVY/wcM8tHM6cHRSpcUUMGvfu31NniUvtct2zY="; + }; + + dontNpmBuild = true; + + npmDepsHash = "sha256-PCLCDmuFFd2lcIpFoeYNvL3DVo55GoLcLP6SnAu67NM="; + + meta = { + description = "Converts LI-HAR and HAR to K6 script"; + homepage = "https://github.com/grafana/har-to-k6"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ cterence ]; + }; +}