]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
nix: fix allowUnfreePredicate for packages with multiple licenses (#19237)
authorAlexis Williams <redacted>
Sun, 1 Feb 2026 20:10:48 +0000 (12:10 -0800)
committerGitHub <redacted>
Sun, 1 Feb 2026 20:10:48 +0000 (22:10 +0200)
commit8a98ba4582ea961f06d350e60cf3572015489745
treed4a7238d810bfc8ac88e6233b39462d07735e20a
parent2634ed207a17db1a54bd8df0555bd8499a6ab691
nix: fix allowUnfreePredicate for packages with multiple licenses (#19237)

The allowUnfreePredicate in pkgsCuda was wrapping p.meta.license in a
list unconditionally. This fails when meta.license is already a list
of licenses, as it creates a nested list and then tries to access
.free and .shortName on the inner list.

Use lib.toList instead, which correctly handles both cases:
- Single license attrset -> wraps in list
- List of licenses -> returns unchanged
.devops/nix/nixpkgs-instances.nix