diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/monitoring/prometheus/mail-exporter.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/monitoring/prometheus/mail-exporter.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/monitoring/prometheus/mail-exporter.nix b/nixpkgs/pkgs/servers/monitoring/prometheus/mail-exporter.nix new file mode 100644 index 000000000000..f845a6ef2567 --- /dev/null +++ b/nixpkgs/pkgs/servers/monitoring/prometheus/mail-exporter.nix @@ -0,0 +1,32 @@ +{ stdenv, buildGoPackage, fetchFromGitHub, installShellFiles }: + +buildGoPackage { + pname = "mailexporter"; + version = "2019-07-14"; + + goPackagePath = "github.com/cherti/mailexporter"; + + src = fetchFromGitHub { + rev = "c60d1970abbedb15e70d6fc858f7fd76fa061ffe"; + owner = "cherti"; + repo = "mailexporter"; + sha256 = "0wlw7jvmhgvg1r2bsifxm2d0vj0iqhplnx6n446625sslvddx3vn"; + }; + + goDeps = ./mail-exporter_deps.nix; + + nativeBuildInputs = [ installShellFiles ]; + + postInstall = '' + installManPage $src/man/mailexporter.1 + installManPage $src/man/mailexporter.conf.5 + ''; + + meta = with stdenv.lib; { + description = "Export Prometheus-style metrics about mail server functionality"; + homepage = "https://github.com/cherti/mailexporter"; + license = licenses.gpl3; + maintainers = with maintainers; [ willibutz globin ]; + platforms = platforms.linux; + }; +} |