@@ -0,0 +1,23 @@
1+{ stdenv, buildGoPackage, fetchFromGitHub }:
2+
3+buildGoPackage rec {
4+ name = "consul_exporter-${version}";
5+ version = "0.3.0";
6+
7+ goPackagePath = "github.com/prometheus/consul_exporter";
8+
9+ src = fetchFromGitHub {
10+ owner = "prometheus";
11+ repo = "consul_exporter";
12+ rev = "v${version}";
13+ sha256 = "1zffbxyfmqpbdqkx5rb5vjgd9j4p4zcrh6jvn1zhbdzrcs7khnd9";
14+ };
15+
16+ meta = with stdenv.lib; {
17+ description = "Prometheus exporter for Consul metrics";
18+ homepage = https://github.com/prometheus/consul_exporter;
19+ license = licenses.asl20;
20+ maintainers = with maintainers; [ hectorj ];
21+ platforms = platforms.unix;
22+ };
23+}