_cuda.lib.allowUnfreeCudaPredicate: handle license not having shortName

Signed-off-by: Connor Baker <ConnorBaker01@gmail.com>
This commit is contained in:
Connor Baker
2025-10-22 13:14:23 -07:00
parent ba2fa45461
commit d2367f0718
@@ -121,7 +121,7 @@
++ lib.map (license: license.shortName) (lib.attrValues _cuda.lib.licenses);
in
package:
lib.all (license: license.free || lib.elem license.shortName cudaLicenseNames) (
lib.all (license: license.free || lib.elem (license.shortName or null) cudaLicenseNames) (
lib.toList package.meta.license
);
}