sensu-go-{cli,backend,agent}: set meta.mainProgram, format
This commit is contained in:
parent
0473477f99
commit
a3e639c784
1 changed files with 7 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
{ buildGoModule, fetchFromGitHub, lib }:
|
||||
|
||||
let
|
||||
generic = { subPackages, pname, postInstall ? "" }:
|
||||
generic = { subPackages, pname, postInstall ? "", mainProgram }:
|
||||
buildGoModule rec {
|
||||
inherit pname;
|
||||
version = "6.4.1";
|
||||
|
@ -16,9 +16,9 @@ let
|
|||
|
||||
inherit subPackages postInstall;
|
||||
|
||||
vendorSha256 = "sha256-fStGEKAR9fzA6Uom6r59jFGTBUfTTj0TzytoJWuicbU=";
|
||||
vendorSha256 = "sha256-fStGEKAR9fzA6Uom6r59jFGTBUfTTj0TzytoJWuicbU=";
|
||||
|
||||
doCheck = false;
|
||||
doCheck = false;
|
||||
|
||||
ldflags = let
|
||||
versionPkg = "github.com/sensu/sensu-go/version";
|
||||
|
@ -28,6 +28,7 @@ let
|
|||
];
|
||||
|
||||
meta = {
|
||||
inherit mainProgram;
|
||||
homepage = "https://sensu.io";
|
||||
description = "Open source monitoring tool for ephemeral infrastructure & distributed applications";
|
||||
license = lib.licenses.mit;
|
||||
|
@ -54,15 +55,18 @@ in
|
|||
) > ''${!outputBin}/share/zsh/site-functions/_sensuctl
|
||||
|
||||
'';
|
||||
mainProgram = "sensuctl";
|
||||
};
|
||||
|
||||
sensu-go-backend = generic {
|
||||
pname = "sensu-go-backend";
|
||||
subPackages = [ "cmd/sensu-backend" ];
|
||||
mainProgram = "sensu-backend";
|
||||
};
|
||||
|
||||
sensu-go-agent = generic {
|
||||
pname = "sensu-go-agent";
|
||||
subPackages = [ "cmd/sensu-agent" ];
|
||||
mainProgram = "sensu-agent";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue