meta.mainProgram attribute missing #316

Closed
opened 2024-05-15 08:21:33 +00:00 by kiaragrouwstra · 1 comment
Member

Describe the bug

building my config with lix, i get:

trace: warning: getExe: Package "nix-2.90.0-beta.1-lixpre20240506-b6799ab" 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".

Steps To Reproduce

  1. follow lix instructions for nixos flake
  2. build
  3. find warning

Expected behavior

no warning

nix --version output

nix (Lix, like Nix) 2.90.0-beta.1-lixpre20240506-b6799ab

## Describe the bug building my config with lix, i get: ``` trace: warning: getExe: Package "nix-2.90.0-beta.1-lixpre20240506-b6799ab" 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". ``` ## Steps To Reproduce 1. follow lix instructions for nixos flake 2. build 3. find warning ## Expected behavior no warning ## `nix --version` output nix (Lix, like Nix) 2.90.0-beta.1-lixpre20240506-b6799ab
kiaragrouwstra added the
bug
label 2024-05-15 08:21:33 +00:00
qyriad added the
Area/build-packaging
E/easy
labels 2024-05-15 18:23:58 +00:00
delroth self-assigned this 2024-05-24 01:26:01 +00:00
Member
cl/1195
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#316
No description provided.