Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta.mainProgram is not set #53

Open
matdibu opened this issue May 22, 2024 · 0 comments
Open

meta.mainProgram is not set #53

matdibu opened this issue May 22, 2024 · 0 comments

Comments

@matdibu
Copy link

matdibu commented May 22, 2024

Using the inputs.zig.packages.${system}.master package for https://github.com/numtide/treefmt-nix/blob/main/programs/zig.nix leads to this warning:

trace:
  warning:
    getExe:
      Package "zig-0.13.0-dev.242+6635360db" 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".

At first glance, this looks like it could be fixed by adding meta.mainProgram to mkBinaryInstall in default.nix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant