diff --git a/pkgs/development/cuda-modules/_cuda/lib/cuda.nix b/pkgs/development/cuda-modules/_cuda/lib/cuda.nix index abae22f9d4f8..09cf9c588f4a 100644 --- a/pkgs/development/cuda-modules/_cuda/lib/cuda.nix +++ b/pkgs/development/cuda-modules/_cuda/lib/cuda.nix @@ -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 ); }