Files
nixpkgs/pkgs/by-name/ha/hatchet/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

50 lines
1.2 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
pname = "hatchet";
version = "0.6.0";
src = fetchFromGitHub {
owner = "simagix";
repo = "hatchet";
tag = "v${finalAttrs.version}";
hash = "sha256-m/TuO5Z4Pc2Hruxb2uRwKcccUQjExnGOt3A0fqXVt5s=";
};
vendorHash = "sha256-FbwwAeK9L6yIVZEBN1Ay5PB2D89vQNjbtMG5pI5jAAw=";
ldflags = [
"-s"
"-w"
"-X main.version=v${finalAttrs.version}"
"-X main.repo=${finalAttrs.src.owner}/${finalAttrs.src.repo}"
];
postInstall = "mv $out/bin/main $out/bin/${finalAttrs.meta.mainProgram}";
# the tests are using fixture files not available from the git repo.
doCheck = false;
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://github.com/simagix/hatchet";
changelog = "https://github.com/simagix/hatchet/releases/tag/${finalAttrs.src.tag}";
description = "MongoDB JSON Log Analyzer";
maintainers = with lib.maintainers; [ aduh95 ];
license = lib.licenses.asl20;
mainProgram = "hatchet";
};
})