diff options
| author | Yuriy Taraday <yuriy.taraday@tweag.io> | 2025-08-04 17:00:57 +0200 |
|---|---|---|
| committer | Yuriy Taraday <yuriy.taraday@tweag.io> | 2025-08-07 13:39:40 +0200 |
| commit | 1d4489dc3265771fd11f8b3d0422036d39b44b0f (patch) | |
| tree | 07ffcf1bc75fe71dff73ecc636eb15bf030534e9 /pkgs/development/python-modules/rangehttpserver | |
| parent | ca22674fa351548e741a0b826146f5fc76961323 (diff) | |
stdenv: Replace "// optionalAttrs" with nullable attr name
As in https://github.com/NixOS/nixpkgs/pull/430132, it saves a lot of
set allocations and merge operations, but makes code harder to read.
I've tried introducing a function like this to make code cleaner, but it
increases number of envs and space taken by them significantly:
optionalAttr = cond: name: if cond then name else null;
I've also tried applying this logic to the section with isDarwin, but
it makes things measurably worse for x86_64-linux eval.
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions
