NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
11.45k stars 1.44k forks source link

flake.nix: Tidy `packages` build matrix code #10962

Closed roberth closed 5 days ago

roberth commented 5 days ago

Motivation

Make it easier to read.

flatMapAttrs is easier to read because it introduces the values before using them, kind of like a let bindings with multiple values.

The repeated comments remind the reader of the purpose of the innermost attrsets, which is actually very simple. Knowing that they go right into the result should help a lot with building a mental model for this pattern.

Context

Priorities and Process

Add :+1: to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.