1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 installShellFiles,
6}:
7
8buildGoModule rec {
9 pname = "imap-mailstat-exporter";
10 version = "0.0.1";
11
12 src = fetchFromGitHub {
13 owner = "bt909";
14 repo = "imap-mailstat-exporter";
15 rev = "refs/tags/v${version}";
16 hash = "sha256-aR/94C9SI+FPs3zg3bpexmgGYrhxghyHwpXj25x0yuw=";
17 };
18
19 vendorHash = "sha256-M5Ho4CiO5DC6mWzenXEo2pu0WLHj5S8AV3oEFwD31Sw=";
20
21 nativeBuildInputs = [ installShellFiles ];
22
23 meta = with lib; {
24 description = "Export Prometheus-style metrics about how many emails you have in your INBOX and in additional configured folders";
25 mainProgram = "imap-mailstat-exporter";
26 homepage = "https://github.com/bt909/imap-mailstat-exporter";
27 license = licenses.mit;
28 maintainers = with maintainers; [ raboof ];
29 platforms = platforms.linux;
30 };
31}