diff --git a/pkgs/servers/monitoring/sensu-go/default.nix b/pkgs/servers/monitoring/sensu-go/default.nix index 6358fa753916..9b07f299f729 100644 --- a/pkgs/servers/monitoring/sensu-go/default.nix +++ b/pkgs/servers/monitoring/sensu-go/default.nix @@ -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"; }; }