hatchet: init at 0.6.0 (#425716)

authored by Arne Keller and committed by GitHub ade9aa73 5c162104

Changed files
+49
pkgs
by-name
ha
hatchet
+49
pkgs/by-name/ha/hatchet/package.nix
···
··· 1 + { 2 + lib, 3 + buildGoModule, 4 + fetchFromGitHub, 5 + nix-update-script, 6 + versionCheckHook, 7 + }: 8 + 9 + buildGoModule (finalAttrs: { 10 + pname = "hatchet"; 11 + version = "0.6.0"; 12 + 13 + src = fetchFromGitHub { 14 + owner = "simagix"; 15 + repo = "hatchet"; 16 + tag = "v${finalAttrs.version}"; 17 + hash = "sha256-m/TuO5Z4Pc2Hruxb2uRwKcccUQjExnGOt3A0fqXVt5s="; 18 + }; 19 + 20 + vendorHash = "sha256-FbwwAeK9L6yIVZEBN1Ay5PB2D89vQNjbtMG5pI5jAAw="; 21 + 22 + ldflags = [ 23 + "-s" 24 + "-w" 25 + "-X main.version=v${finalAttrs.version}" 26 + "-X main.repo=${finalAttrs.src.owner}/${finalAttrs.src.repo}" 27 + ]; 28 + 29 + postInstall = "mv $out/bin/main $out/bin/${finalAttrs.meta.mainProgram}"; 30 + 31 + # the tests are using fixture files not available from the git repo. 32 + doCheck = false; 33 + 34 + nativeInstallCheckInputs = [ 35 + versionCheckHook 36 + ]; 37 + doInstallCheck = true; 38 + 39 + passthru.updateScript = nix-update-script { }; 40 + 41 + meta = { 42 + homepage = "https://github.com/simagix/hatchet"; 43 + changelog = "https://github.com/simagix/hatchet/releases/tag/${finalAttrs.src.tag}"; 44 + description = "MongoDB JSON Log Analyzer"; 45 + maintainers = with lib.maintainers; [ aduh95 ]; 46 + license = lib.licenses.asl20; 47 + mainProgram = "hatchet"; 48 + }; 49 + })