cc-wrapper: try to better guess meta.mainProgram
Otherwise nix will guess it from (p)name which contains "-wrapper". Fixes #235585
This commit is contained in:
parent
8a8d80f144
commit
295ff35f24
1 changed files with 1 additions and 0 deletions
|
@ -612,5 +612,6 @@ stdenv.mkDerivation {
|
|||
lib.attrByPath ["meta" "description"] "System C compiler" cc_
|
||||
+ " (wrapper script)";
|
||||
priority = 10;
|
||||
mainProgram = if name != "" then name else ccName;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue