about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-08-15 08:57:31 +0200
committerSefa Eyeoglu <contact@scrumplex.net>2023-08-15 08:57:31 +0200
commita9a29b70590d95761044fb976b8135c9087ee24b (patch)
tree14883ac412d9b66b617281c7c482231c59b694fc /lib
parent30364657608090625e9c7f861da53f42f8e913f2 (diff)
downloadnixlib-a9a29b70590d95761044fb976b8135c9087ee24b.tar
nixlib-a9a29b70590d95761044fb976b8135c9087ee24b.tar.gz
nixlib-a9a29b70590d95761044fb976b8135c9087ee24b.tar.bz2
nixlib-a9a29b70590d95761044fb976b8135c9087ee24b.tar.lz
nixlib-a9a29b70590d95761044fb976b8135c9087ee24b.tar.xz
nixlib-a9a29b70590d95761044fb976b8135c9087ee24b.tar.zst
nixlib-a9a29b70590d95761044fb976b8135c9087ee24b.zip
lib/meta.nix: recommend use of getExe' in getExe warning
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/meta.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/meta.nix b/lib/meta.nix
index 50665c9513df..89c78a9bc24e 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
       );