You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stdenv.mkDerivation falls back to pname when meta.mainProgram is not set. cabal2nix should follow that and only set mainProgram when it differes from pname.
The text was updated successfully, but these errors were encountered:
Nix does, not stdenv.mkDerivation. If meta.mainProgram is not set, it is not set.
There is a difference between not knowing the main program where with nix run its reasonable to make an assumption, and other cases where it may not be reasonable to do so.
cabal2nix may even not emit a mainProgram binding if an executable of the same name exists, indicating that it was not able to determine for sure that that executable is the main one.
Consequently, I don't see a reason to change this.
stdenv.mkDerivation falls back to pname when meta.mainProgram is not set. cabal2nix should follow that and only set mainProgram when it differes from pname.
The text was updated successfully, but these errors were encountered: