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:
Vladimír Čunát 2023-06-02 17:32:06 +02:00
parent 8a8d80f144
commit 295ff35f24
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -612,5 +612,6 @@ stdenv.mkDerivation {
lib.attrByPath ["meta" "description"] "System C compiler" cc_ lib.attrByPath ["meta" "description"] "System C compiler" cc_
+ " (wrapper script)"; + " (wrapper script)";
priority = 10; priority = 10;
mainProgram = if name != "" then name else ccName;
}; };
} }