lol
1{ stdenv, lib, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:
2
3buildGoPackage rec {
4 name = "nginx_exporter-${version}";
5 version = "20160524-${stdenv.lib.strings.substring 0 7 rev}";
6 rev = "2cf16441591f6b6e58a8c0439dcaf344057aea2b";
7
8 goPackagePath = "github.com/discordianfish/nginx_exporter";
9
10 src = fetchgit {
11 inherit rev;
12 url = "https://github.com/discordianfish/nginx_exporter";
13 sha256 = "0p9j0bbr2lr734980x2p8d67lcify21glwc5k3i3j4ri4vadpxvc";
14 };
15
16 goDeps = ./nginx-exporter_deps.json;
17
18 meta = with stdenv.lib; {
19 description = "Metrics relay from nginx stats to Prometheus";
20 homepage = https://github.com/discordianfish/nginx_exporter;
21 license = licenses.asl20;
22 maintainers = with maintainers; [ benley ];
23 platforms = platforms.unix;
24 };
25}