2018-01-26 18:38:15 +01:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2018-03-20 15:03:03 +01:00
|
|
|
name = "dovecot_exporter-${version}";
|
|
|
|
version = "0.1.1";
|
2018-01-26 18:38:15 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/kumina/dovecot_exporter";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kumina";
|
|
|
|
repo = "dovecot_exporter";
|
2018-03-20 15:03:03 +01:00
|
|
|
rev = version;
|
|
|
|
sha256 = "0i7nfgkb5jqdbgr16i29jdsvh69dx9qgn6nazpw78k0lgy7mpidn";
|
2018-01-26 18:38:15 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|