nixpkgs/pkgs/by-name/fi/filebeat8/package.nix
R. Ryantm effc9ab958 filebeat8: 8.19.15 -> 8.19.16
(cherry picked from commit 2c63598e0b)
2026-06-01 05:33:59 +00:00

45 lines
1.1 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
buildGoModule (finalAttrs: {
pname = "filebeat";
version = "8.19.16";
src = fetchFromGitHub {
owner = "elastic";
repo = "beats";
tag = "v${finalAttrs.version}";
hash = "sha256-OBPaSbPAp7SvhEi2yycgT70yRfCtIEdkL4/GSR2YrO4=";
};
proxyVendor = true; # darwin/linux hash mismatch
vendorHash = "sha256-aCoXzWnNsctxJmsfeUyVSLkUY59adtIn2JxxGKPBob8=";
subPackages = [ "filebeat" ];
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = "version";
doInstallCheck = true;
passthru = {
updateScript = nix-update-script { extraArgs = [ "--version-regex=v(8\\..*)" ]; };
};
meta = {
description = "Tails and ships log files";
homepage = "https://github.com/elastic/beats";
changelog = "https://www.elastic.co/guide/en/beats/libbeat/${lib.versions.majorMinor finalAttrs.version}/release-notes-${finalAttrs.version}.html";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ srhb ];
mainProgram = "filebeat";
};
})