diff options
Diffstat (limited to 'pkgs/servers/monitoring/prometheus/dovecot-exporter.nix')
-rw-r--r-- | pkgs/servers/monitoring/prometheus/dovecot-exporter.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/servers/monitoring/prometheus/dovecot-exporter.nix b/pkgs/servers/monitoring/prometheus/dovecot-exporter.nix new file mode 100644 index 00000000000..ff7156360a9 --- /dev/null +++ b/pkgs/servers/monitoring/prometheus/dovecot-exporter.nix @@ -0,0 +1,26 @@ +{ lib, buildGoPackage, fetchFromGitHub, nixosTests }: + +buildGoPackage rec { + pname = "dovecot_exporter"; + version = "0.1.3"; + + goPackagePath = "github.com/kumina/dovecot_exporter"; + + src = fetchFromGitHub { + owner = "kumina"; + repo = "dovecot_exporter"; + rev = version; + sha256 = "1lnxnnm45fhcyv40arcvpiiibwdnxdwhkf8sbjpifx1wspvphcj9"; + }; + + goDeps = ./dovecot-exporter-deps.nix; + + passthru.tests = { inherit (nixosTests.prometheus-exporters) dovecot; }; + + meta = with lib; { + inherit (src.meta) homepage; + description = "Prometheus metrics exporter for Dovecot"; + license = licenses.asl20; + maintainers = with maintainers; [ willibutz globin ]; + }; +} |