2020-06-18 12:48:40 +02:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub, nixosTests }:
|
2018-01-26 18:38:15 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "dovecot_exporter";
|
2018-09-13 20:45:45 +02:00
|
|
|
version = "0.1.3";
|
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;
|
2018-09-13 20:45:45 +02:00
|
|
|
sha256 = "1lnxnnm45fhcyv40arcvpiiibwdnxdwhkf8sbjpifx1wspvphcj9";
|
2018-01-26 18:38:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
goDeps = ./dovecot-exporter-deps.nix;
|
|
|
|
|
2020-06-18 12:48:40 +02:00
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) dovecot; };
|
|
|
|
|
2018-01-26 18:38:15 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Prometheus metrics exporter for Dovecot";
|
|
|
|
license = licenses.asl20;
|
2019-08-20 19:36:05 +02:00
|
|
|
maintainers = with maintainers; [ willibutz globin ];
|
2018-01-26 18:38:15 +01:00
|
|
|
};
|
|
|
|
}
|