Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flake.nix: Tidy packages build matrix code #10962

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

roberth
Copy link
Member

@roberth roberth commented Jun 26, 2024

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 👍 to pull requests you find important.

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

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.
@roberth roberth requested a review from edolstra as a code owner June 26, 2024 00:07
@Ericson2314 Ericson2314 merged commit a92f307 into NixOS:master Jun 26, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants