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
48 lines
1.5 KiB
Nix
48 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
versionCheckHook,
|
|
}:
|
|
buildGoModule (finalAttrs: {
|
|
pname = "dns-collector";
|
|
version = "1.11.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dmachard";
|
|
repo = "dns-collector";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-2NHJs2KdSDw36ePG8s/YSU4wlWG+14NQ6oWJYqMv2Wk=";
|
|
};
|
|
subPackages = [ "." ];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/prometheus/common/version.BuildDate=1970-01-01T00:00:00Z"
|
|
"-X github.com/prometheus/common/version.BuildUser=nix@nixpkgs"
|
|
"-X github.com/prometheus/common/version.Branch=master"
|
|
"-X github.com/prometheus/common/version.Revision=${finalAttrs.src.rev}"
|
|
"-X github.com/prometheus/common/version.Version=${finalAttrs.version}"
|
|
];
|
|
|
|
vendorHash = "sha256-N0gaDyOlRvFR1Buj/SKoOjwkVMRxd8Uj7iT/cDBfM9A=";
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
doInstallCheck = true;
|
|
versionCheckProgram = "${placeholder "out"}/bin/${finalAttrs.meta.mainProgram}";
|
|
versionCheckProgramArg = "-version";
|
|
|
|
meta = {
|
|
changelog = "https://github.com/dmachart/dns-collector/releases/tag/v${finalAttrs.version}";
|
|
homepage = "https://github.com/dmachart/dns-collector";
|
|
description = "Ingesting, pipelining, and enhancing your DNS logs with usage indicators, security analysis, and additional metadata. ";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "go-dnscollector";
|
|
maintainers = with lib.maintainers; [ paepcke ];
|
|
};
|
|
})
|