1 { lib, buildGoModule, fetchFromGitHub, installShellFiles, nixosTests }:
4 pname = "mailexporter";
5 version = "2020-07-16";
7 src = fetchFromGitHub {
10 rev = "f5a552c736ac40ccdc0110d2e9a71619c1cd6862";
11 hash = "sha256-P7LZi2iXZJaY5AEJBeAVszq/DN9SFxNfeQaflnF6+ng=";
14 vendorHash = "sha256-QOOf00uCdC8fl7V/+Q8X90yQ7xc0Tb6M9dXisdGEisM=";
16 nativeBuildInputs = [ installShellFiles ];
19 installManPage $src/man/mailexporter.1
20 installManPage $src/man/mailexporter.conf.5
23 passthru.tests = { inherit (nixosTests.prometheus-exporters) mail; };
26 description = "Export Prometheus-style metrics about mail server functionality";
27 mainProgram = "mailexporter";
28 homepage = "https://github.com/cherti/mailexporter";
29 license = licenses.gpl3;
30 maintainers = with maintainers; [ willibutz globin ];
31 platforms = platforms.linux;