prometheus-mail-exporter: use installShellFiles

This commit is contained in:
zowoq 2020-04-26 13:16:55 +10:00
parent e75465256b
commit 2dca3f2aa7

View file

@ -1,4 +1,4 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:
{ stdenv, buildGoPackage, fetchFromGitHub, installShellFiles }:
buildGoPackage {
pname = "mailexporter";
@ -15,9 +15,11 @@ buildGoPackage {
goDeps = ./mail-exporter_deps.nix;
nativeBuildInputs = [ installShellFiles ];
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
installManPage $src/man/mailexporter.1
installManPage $src/man/mailexporter.conf.5
'';
meta = with stdenv.lib; {