mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 12:11:28 +00:00
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 {
|
||||
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; {
|
||||
|
|
Loading…
Reference in a new issue