From d2367f07180c54834b749a48e6dc797c8e0735c3 Mon Sep 17 00:00:00 2001 From: Connor Baker Date: Sun, 5 Oct 2025 00:18:03 +0000 Subject: [PATCH] _cuda.lib.allowUnfreeCudaPredicate: handle license not having shortName Signed-off-by: Connor Baker --- pkgs/development/cuda-modules/_cuda/lib/cuda.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); }