2016-12-01 01:51:30 +01:00
|
|
|
{ stdenv, buildGoPackage, fetchgit }:
|
2016-06-05 15:42:10 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "nginx_exporter-${version}";
|
2016-12-01 01:51:30 +01:00
|
|
|
version = "20161107-${stdenv.lib.strings.substring 0 7 rev}";
|
|
|
|
rev = "2d7dfd13458c0d82671c03dc54f3aa0110a49a05";
|
2016-06-28 15:32:22 +02:00
|
|
|
|
2016-06-05 15:42:10 +02:00
|
|
|
goPackagePath = "github.com/discordianfish/nginx_exporter";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
inherit rev;
|
|
|
|
url = "https://github.com/discordianfish/nginx_exporter";
|
2016-12-01 01:51:30 +01:00
|
|
|
sha256 = "17mjbf8v4h7ja87y02ggmyzl3g8ms8s37mcpcq1niijgli37h75d";
|
2016-06-05 15:42:10 +02:00
|
|
|
};
|
|
|
|
|
2016-09-10 12:04:13 +02:00
|
|
|
goDeps = ./nginx-exporter_deps.nix;
|
2016-06-05 15:42:10 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Metrics relay from nginx stats to Prometheus";
|
|
|
|
homepage = https://github.com/discordianfish/nginx_exporter;
|
|
|
|
license = licenses.asl20;
|
2016-12-01 01:51:30 +01:00
|
|
|
maintainers = with maintainers; [ benley fpletz ];
|
2016-06-05 15:42:10 +02:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|