diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-15 08:57:31 +0200 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-15 08:57:31 +0200 |
commit | a9a29b70590d95761044fb976b8135c9087ee24b (patch) | |
tree | 14883ac412d9b66b617281c7c482231c59b694fc /lib/meta.nix | |
parent | 30364657608090625e9c7f861da53f42f8e913f2 (diff) |
lib/meta.nix: recommend use of getExe' in getExe warning
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'lib/meta.nix')
-rw-r--r-- | lib/meta.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/meta.nix b/lib/meta.nix index 50665c9513df0..89c78a9bc24e0 100644 --- a/lib/meta.nix +++ b/lib/meta.nix @@ -147,7 +147,7 @@ rec { let y = x.meta.mainProgram or ( # This could be turned into an error when 23.05 is at end of life - lib.warn "getExe: Package ${lib.strings.escapeNixIdentifier x.meta.name or x.pname or x.name} 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, specify the full path to the program, such as \"\${lib.getBin foo}/bin/bar\"." + lib.warn "getExe: Package ${lib.strings.escapeNixIdentifier x.meta.name or x.pname or x.name} 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\"." lib.getName x ); |