nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 32 lines 822 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 nixosTests, 6}: 7 8buildGoModule rec { 9 pname = "nginxlog_exporter"; 10 version = "1.11.0"; 11 12 src = fetchFromGitHub { 13 owner = "martin-helmich"; 14 repo = "prometheus-nginxlog-exporter"; 15 rev = "v${version}"; 16 sha256 = "sha256-UkXrVHHHZ9mEgsMUcHu+wI6NZFw4h3X4atDBjpBcz8E="; 17 }; 18 19 vendorHash = "sha256-RzqfmP1d3zqageiGSr+CxSJQxAXmOKRCwj/7KO2f3EE="; 20 21 subPackages = [ "." ]; 22 23 passthru.tests = { inherit (nixosTests.prometheus-exporters) nginxlog; }; 24 25 meta = { 26 description = "Export metrics from Nginx access log files to Prometheus"; 27 mainProgram = "prometheus-nginxlog-exporter"; 28 homepage = "https://github.com/martin-helmich/prometheus-nginxlog-exporter"; 29 license = lib.licenses.asl20; 30 maintainers = with lib.maintainers; [ mmahut ]; 31 }; 32}