2018-05-01 13:31:48 +01:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2016-06-05 14:42:10 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "nginx_exporter";
|
2019-08-11 11:30:04 +01:00
|
|
|
version = "0.4.2";
|
2016-06-28 14:32:22 +01:00
|
|
|
|
2019-07-17 13:35:07 +01:00
|
|
|
goPackagePath = "github.com/nginxinc/nginx-prometheus-exporter";
|
|
|
|
|
|
|
|
buildFlagsArray = [
|
|
|
|
"-ldflags=" "-X main.version=${version}"
|
|
|
|
];
|
2016-06-05 14:42:10 +01:00
|
|
|
|
2018-05-01 13:31:48 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
2019-07-17 13:35:07 +01:00
|
|
|
owner = "nginxinc";
|
|
|
|
repo = "nginx-prometheus-exporter";
|
2019-08-11 11:30:04 +01:00
|
|
|
sha256 = "023nl83w0fic7sj0yxxgj7jchyafqnmv6dq35amzz37ikx92mdcj";
|
2016-06-05 14:42:10 +01:00
|
|
|
};
|
|
|
|
|
2019-08-11 11:30:04 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
2016-06-05 14:42:10 +01:00
|
|
|
meta = with stdenv.lib; {
|
2019-07-17 13:35:07 +01:00
|
|
|
description = "NGINX Prometheus Exporter for NGINX and NGINX Plus";
|
|
|
|
homepage = "https://github.com/nginxinc/nginx-prometheus-exporter";
|
|
|
|
license = licenses.asl20;
|
2019-08-20 18:36:05 +01:00
|
|
|
maintainers = with maintainers; [ benley fpletz willibutz globin ];
|
2016-06-05 14:42:10 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|