2018-05-01 05:31:48 -07:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2016-06-05 06:42:10 -07:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "nginx_exporter-${version}";
|
2019-07-17 05:35:07 -07:00
|
|
|
version = "0.4.1";
|
2016-06-28 06:32:22 -07:00
|
|
|
|
2019-07-17 05:35:07 -07:00
|
|
|
goPackagePath = "github.com/nginxinc/nginx-prometheus-exporter";
|
|
|
|
|
|
|
|
buildFlagsArray = [
|
|
|
|
"-ldflags=" "-X main.version=${version}"
|
|
|
|
];
|
2016-06-05 06:42:10 -07:00
|
|
|
|
2018-05-01 05:31:48 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
2019-07-17 05:35:07 -07:00
|
|
|
owner = "nginxinc";
|
|
|
|
repo = "nginx-prometheus-exporter";
|
|
|
|
sha256 = "0c5bxl9xrd4gh2w5wyrzghmbcy9k1khydzml5cm0rsyqhwsvs8m5";
|
2016-06-05 06:42:10 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-07-17 05:35:07 -07:00
|
|
|
description = "NGINX Prometheus Exporter for NGINX and NGINX Plus";
|
|
|
|
homepage = "https://github.com/nginxinc/nginx-prometheus-exporter";
|
|
|
|
license = licenses.asl20;
|
2018-05-01 05:31:48 -07:00
|
|
|
maintainers = with maintainers; [ benley fpletz willibutz ];
|
2016-06-05 06:42:10 -07:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|