From b16799b957500a135dbf303c7486a10693bddf5f Mon Sep 17 00:00:00 2001 From: Ivan Kovnatsky <75213+ivankovnatsky@users.noreply.github.com> Date: Thu, 10 Apr 2025 17:09:22 +0300 Subject: [PATCH] netdata: add mainProgram ```console evaluation warning: getExe: Package "netdata-1.47.5" does not have the meta.mainProgram attribute. We'll assume that the main program has the same name for now, but this behavior is deprecated, because it leads to surprising errors when the assumption does not hold. If the package has a main program, please set `meta.mainProgram` in its definition to make this warning go away. Otherwise, if the package does not have a main program, or if you don't control its definition, use getExe' to specify the name to the program, such as lib.getExe' foo "bar". ``` --- pkgs/tools/system/netdata/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/tools/system/netdata/default.nix b/pkgs/tools/system/netdata/default.nix index 00e2d44083cb..b1a3714ee591 100644 --- a/pkgs/tools/system/netdata/default.nix +++ b/pkgs/tools/system/netdata/default.nix @@ -287,6 +287,7 @@ stdenv'.mkDerivation (finalAttrs: { homepage = "https://www.netdata.cloud/"; changelog = "https://github.com/netdata/netdata/releases/tag/v${version}"; license = [ licenses.gpl3Plus ] ++ lib.optionals (withCloudUi) [ licenses.ncul1 ]; + mainProgram = "netdata"; platforms = platforms.unix; maintainers = with maintainers; [ mkg20001