lol

dns-collector: init at 1.7.0 (#412019)

authored by

Pol Dellaiera and committed by
GitHub
7d7f2608 a64a6493

+47
+47
pkgs/by-name/dn/dns-collector/package.nix
··· 1 + { 2 + lib, 3 + buildGoModule, 4 + fetchFromGitHub, 5 + nix-update-script, 6 + versionCheckHook, 7 + }: 8 + buildGoModule (finalAttrs: { 9 + pname = "dns-collector"; 10 + version = "1.7.0"; 11 + 12 + src = fetchFromGitHub { 13 + owner = "dmachard"; 14 + repo = "dns-collector"; 15 + tag = "v${finalAttrs.version}"; 16 + hash = "sha256-antLNQEOA20XxmmZHFQcs0VuLVfgM5V3wyXOYIX4hlk="; 17 + }; 18 + subPackages = [ "." ]; 19 + 20 + ldflags = [ 21 + "-s" 22 + "-w" 23 + "-X github.com/prometheus/common/version.BuildDate=1970-01-01T00:00:00Z" 24 + "-X github.com/prometheus/common/version.BuildUser=nix@nixpkgs" 25 + "-X github.com/prometheus/common/version.Branch=master" 26 + "-X github.com/prometheus/common/version.Revision=${finalAttrs.src.rev}" 27 + "-X github.com/prometheus/common/version.Version=${finalAttrs.version}" 28 + ]; 29 + 30 + vendorHash = "sha256-9EQr4lhv6+PkAnMJ6iWnBsK/SzZaOyVkSpqSYsX07LY="; 31 + 32 + passthru.updateScript = nix-update-script { }; 33 + 34 + nativeInstallCheckInputs = [ versionCheckHook ]; 35 + doInstallCheck = true; 36 + versionCheckProgram = "${placeholder "out"}/bin/${finalAttrs.meta.mainProgram}"; 37 + versionCheckProgramArg = "-version"; 38 + 39 + meta = { 40 + changelog = "https://github.com/dmachart/dns-collector/releases/tag/v${finalAttrs.version}"; 41 + homepage = "https://github.com/dmachart/dns-collector"; 42 + description = "Ingesting, pipelining, and enhancing your DNS logs with usage indicators, security analysis, and additional metadata. "; 43 + license = lib.licenses.mit; 44 + mainProgram = "go-dnscollector"; 45 + maintainers = with lib.maintainers; [ paepcke ]; 46 + }; 47 + })