nixpkgs/pkgs/servers/monitoring/prometheus/mail-exporter.nix
Vladimír Čunát 2e6bf42a22
Merge branch 'master' into staging-next
There ver very many conflicts, basically all due to
name -> pname+version.  Fortunately, almost everything was auto-resolved
by kdiff3, and for now I just fixed up a couple evaluation problems,
as verified by the tarball job.  There might be some fallback to these
conflicts, but I believe it should be minimal.

Hydra nixpkgs: ?compare=1538299
2019-08-24 08:55:37 +02:00

31 lines
883 B
Nix

{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
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;
postInstall = ''
install -D -m 0444 -t $bin/share/man/man1 $src/man/mailexporter.1
install -D -m 0444 -t $bin/share/man/man5 $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;
};
}