Skip to content

Add a way to get the main program of a derivation. #137032

@tomprince

Description

@tomprince

There are a couple of different ways this is determined:

  • nix run use meta.mainProgram or splits the derivation name
  • pkgs.testVersion uses package.meta.mainProgram or package.pname or package.name

It would be nice if there were a helper to get this value in a consistent way, and perhaps also a way to directly get an absolute path to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: enhancementAdd something new or improve an existing system.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions