Skip to content

meta.mainProgram is not set #53

@matdibu

Description

@matdibu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions