prometheus-mail-exporter: use installShellFiles
This commit is contained in:
parent
e75465256b
commit
2dca3f2aa7
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
{ stdenv, buildGoPackage, fetchFromGitHub, installShellFiles }:
|
||||||
|
|
||||||
buildGoPackage {
|
buildGoPackage {
|
||||||
pname = "mailexporter";
|
pname = "mailexporter";
|
||||||
@ -15,9 +15,11 @@ buildGoPackage {
|
|||||||
|
|
||||||
goDeps = ./mail-exporter_deps.nix;
|
goDeps = ./mail-exporter_deps.nix;
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -D -m 0444 -t $bin/share/man/man1 $src/man/mailexporter.1
|
installManPage $src/man/mailexporter.1
|
||||||
install -D -m 0444 -t $bin/share/man/man5 $src/man/mailexporter.conf.5
|
installManPage $src/man/mailexporter.conf.5
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user