Skip to content

Commit d470c50

Browse files
har-to-k6: init at 0.14.10 (#374901)
2 parents 8bddce7 + fb944e3 commit d470c50

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
lib,
3+
buildNpmPackage,
4+
fetchFromGitHub,
5+
nix-update-script,
6+
versionCheckHook,
7+
}:
8+
9+
buildNpmPackage rec {
10+
pname = "har-to-k6";
11+
version = "0.14.10";
12+
13+
src = fetchFromGitHub {
14+
owner = "grafana";
15+
repo = "har-to-k6";
16+
tag = "v${version}";
17+
hash = "sha256-eBy5rBZt9v8XFOSGQPhJWAGy2XuhyuG013A6ex2AxE4=";
18+
};
19+
20+
dontNpmBuild = true;
21+
22+
npmDepsHash = "sha256-RuK3CzcMkPt5MFEZpYBDtMMShHTT/115pRk1CmRkiek=";
23+
24+
nativeInstallCheckInputs = [ versionCheckHook ];
25+
versionCheckProgramArg = "--version";
26+
doInstallCheck = true;
27+
28+
passthru.updateScript = nix-update-script { };
29+
30+
meta = {
31+
description = "Converts LI-HAR and HAR to K6 script";
32+
homepage = "https://github.com/grafana/har-to-k6";
33+
changelog = "https://github.com/grafana/har-to-k6/releases/tag/v${version}";
34+
license = lib.licenses.asl20;
35+
maintainers = with lib.maintainers; [ cterence ];
36+
mainProgram = "har-to-k6";
37+
platforms = lib.platforms.linux ++ lib.platforms.darwin;
38+
};
39+
}

0 commit comments

Comments
 (0)