2018-01-26 17:38:15 +00:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2018-03-20 14:03:03 +00:00
|
|
|
name = "dovecot_exporter-${version}";
|
2018-09-13 19:45:45 +01:00
|
|
|
version = "0.1.3";
|
2018-01-26 17:38:15 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/kumina/dovecot_exporter";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kumina";
|
|
|
|
repo = "dovecot_exporter";
|
2018-03-20 14:03:03 +00:00
|
|
|
rev = version;
|
2018-09-13 19:45:45 +01:00
|
|
|
sha256 = "1lnxnnm45fhcyv40arcvpiiibwdnxdwhkf8sbjpifx1wspvphcj9";
|
2018-01-26 17:38:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
goDeps = ./dovecot-exporter-deps.nix;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Prometheus metrics exporter for Dovecot";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ willibutz ];
|
|
|
|
};
|
|
|
|
}
|