@@ -0,0 +1,24 @@
1+{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
2+
3+buildGoPackage rec {
4+ name = "blackbox_exporter-${version}";
5+ version = "0.3.0";
6+ rev = version;
7+
8+ goPackagePath = "github.com/prometheus/blackbox_exporter";
9+
10+ src = fetchFromGitHub {
11+ rev = "v${version}";
12+ owner = "prometheus";
13+ repo = "blackbox_exporter";
14+ sha256 = "0imn7ggxl5zqp8i4i8pnsipacx28dirm1mdmmxxbxc5aal3b656m";
15+ };
16+
17+ meta = with stdenv.lib; {
18+ description = "Blackbox probing of endpoints over HTTP, HTTPS, DNS, TCP and ICMP";
19+ homepage = https://github.com/prometheus/blackbox_exporter;
20+ license = licenses.asl20;
21+ maintainers = with maintainers; [ globin fpletz ];
22+ platforms = platforms.unix;
23+ };
24+}