1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 06:05:13 +00:00
nixpkgs/pkgs/servers/monitoring/prometheus/nginx-exporter.nix

30 lines
783 B
Nix
Raw Normal View History

{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "nginx_exporter-${version}";
version = "0.4.2";
goPackagePath = "github.com/nginxinc/nginx-prometheus-exporter";
buildFlagsArray = [
"-ldflags=" "-X main.version=${version}"
];
src = fetchFromGitHub {
rev = "v${version}";
owner = "nginxinc";
repo = "nginx-prometheus-exporter";
sha256 = "023nl83w0fic7sj0yxxgj7jchyafqnmv6dq35amzz37ikx92mdcj";
};
doCheck = true;
meta = with stdenv.lib; {
description = "NGINX Prometheus Exporter for NGINX and NGINX Plus";
homepage = "https://github.com/nginxinc/nginx-prometheus-exporter";
license = licenses.asl20;
maintainers = with maintainers; [ benley fpletz willibutz ];
platforms = platforms.unix;
};
}