2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2016-12-01 00:38:03 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "blackbox_exporter-${version}";
|
2019-08-11 10:50:09 +01:00
|
|
|
version = "0.14.0";
|
2016-12-01 00:38:03 +00:00
|
|
|
rev = version;
|
|
|
|
|
|
|
|
goPackagePath = "github.com/prometheus/blackbox_exporter";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "prometheus";
|
|
|
|
repo = "blackbox_exporter";
|
2019-08-11 10:50:09 +01:00
|
|
|
sha256 = "1v5n59p9jl6y1ka9mqp0ibx1kpcb3gbpl0i6bhqpbr154frmqm4x";
|
2016-12-01 00:38:03 +00:00
|
|
|
};
|
|
|
|
|
2019-08-11 10:50:09 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
2016-12-01 00:38:03 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Blackbox probing of endpoints over HTTP, HTTPS, DNS, TCP and ICMP";
|
2019-08-11 10:50:09 +01:00
|
|
|
homepage = "https://github.com/prometheus/blackbox_exporter";
|
2016-12-01 00:38:03 +00:00
|
|
|
license = licenses.asl20;
|
2019-08-11 10:50:09 +01:00
|
|
|
maintainers = with maintainers; [ globin fpletz willibutz ];
|
2016-12-01 00:38:03 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|