From 100f1e09fe5fff917ee5c4be1fd1243d00f9c0b6 Mon Sep 17 00:00:00 2001 From: con-f-use Date: Fri, 15 Sep 2023 10:35:42 +0200 Subject: vault: add `mainProgram` (#255100) Fixes: ``` warning: getExe: Package "vault-1.14.2" 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/security/vault/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/tools/security/vault/default.nix b/pkgs/tools/security/vault/default.nix index b793d43b1e1..792cd477186 100644 --- a/pkgs/tools/security/vault/default.nix +++ b/pkgs/tools/security/vault/default.nix @@ -47,6 +47,7 @@ buildGoModule rec { description = "A tool for managing secrets"; changelog = "https://github.com/hashicorp/vault/blob/v${version}/CHANGELOG.md"; license = licenses.mpl20; + mainProgram = "vault"; maintainers = with maintainers; [ rushmorem lnl7 offline pradeepchhetri Chili-Man techknowlogick ]; }; } -- cgit 1.4.1