diff options
| author | Adam Dinwoodie <adam@dinwoodie.org> | 2025-10-30 23:00:45 +0000 |
|---|---|---|
| committer | Adam Dinwoodie <adam@dinwoodie.org> | 2026-01-05 21:36:29 +0000 |
| commit | 8e94561d62272983c93f6c635919874f8d19d8f9 (patch) | |
| tree | ea7d56dca7cf10577ca8b45f8c7b7a3b137b2703 /pkgs/development/python-modules/rangehttpserver | |
| parent | 85caf37a9a73e28e2a7667be39eb6213d31e0530 (diff) | |
nixpkgs: pass `lib` to config function
Nixpkgs config, for defining things like which licenses are
permitted, can either be an attrset or a function that is passed a
`pkgs` argument. Evaluating that `pkgs` argument requires computing the
Nixpkgs fixpoint, which requires checking whether the derivations used
in the Nixpkgs bootstrap have valid licenses. This works provided
nothing tries to use Nixpkgs functions to validate or merge anything
included in the configuration.
f5deefd4631e (config: add and document {allow,block}listedLicenses,
2025-08-31), in #437723, added type checking and merging to the lists of
permitted/forbidden licenses. That resulted in a recursion loop if a
list of licenses included, say, `pkgs.lib.licenses.bsd0`.
To allow licenses to be specified from Nixpkgs' library, pass `lib` as
well as `pkgs` to any config function. Computing `lib` doesn't require
working out the full Nixpkgs fixpoint. The change in #437723 will still
break things for some people, but it at least provides a sensible route
to getting the config working again.
Fixes #456994.
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions
