From 7a0fffdfe9589ff60c5b3dfed154a7ae552ada70 Mon Sep 17 00:00:00 2001 From: schnusch Date: Wed, 13 Dec 2023 11:29:24 +0100 Subject: [PATCH] tinyproxy: add meta.mainProgram Fix the following warning when using services.tinyproxy: trace: warning: getExe: Package "tinyproxy-1.11.1" 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/networking/tinyproxy/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/tools/networking/tinyproxy/default.nix b/pkgs/tools/networking/tinyproxy/default.nix index 8778b90b2b02..855c559448a2 100644 --- a/pkgs/tools/networking/tinyproxy/default.nix +++ b/pkgs/tools/networking/tinyproxy/default.nix @@ -39,5 +39,6 @@ stdenv.mkDerivation rec { license = licenses.gpl2Only; platforms = platforms.all; maintainers = [ maintainers.carlosdagos ]; + mainProgram = "tinyproxy"; }; }