8 pname = "dovecot_exporter";
9 version = "0.1.3-unstable-2019-07-19";
11 src = fetchFromGitHub {
13 repo = "dovecot_exporter";
14 rev = "7ef79118ba619ff078594837377189477a4d059f";
15 hash = "sha256-qJbIBSfHYgFztuivuNjleDa+Bx0KC4OklCh3IvK2XFI=";
18 vendorHash = "sha256-+B8sROL1h6ElBfAUBT286yJF9m9zoRvMOrf0z2SVCj0=";
21 # Migrate the project to Go modules
22 # https://github.com/kumina/dovecot_exporter/pull/23
24 url = "https://github.com/kumina/dovecot_exporter/commit/b5184dd99cf8c79facf20cea281828d302327665.patch";
25 hash = "sha256-OcdI1fJ/wumDI/wk5PQVot9+Gw/PnsiwgJY7dcRyEsc=";
29 passthru.tests = { inherit (nixosTests.prometheus-exporters) dovecot; };
32 inherit (src.meta) homepage;
33 description = "Prometheus metrics exporter for Dovecot";
34 mainProgram = "dovecot_exporter";
35 license = lib.licenses.asl20;
36 maintainers = with lib.maintainers; [ willibutz globin ];