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.
There are a couple of different ways this is determined:
nix runusemeta.mainProgramor splits the derivation namepkgs.testVersionusespackage.meta.mainProgram or package.pname or package.nameIt 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.