feat: add convenience eachDefaultSystemMap (#60)

This commit is contained in:
Gabriel Fontes 2022-05-17 05:27:56 -03:00 committed by GitHub
parent a97445c4fc
commit 04c1b18086
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,6 +143,9 @@ let
in
builtins.foldl' op { } systems
;
# eachSystemMap using defaultSystems
eachDefaultSystemMap = eachSystemMap defaultSystems;
# Builds a map from <attr>=value to <system>.<attr> = value.
eachSystemMap = systems: f: builtins.listToAttrs (builtins.map (system: { name = system; value = f system; }) systems);
@ -213,6 +216,7 @@ let
defaultSystems
eachDefaultSystem
eachSystem
eachDefaultSystemMap
eachSystemMap
filterPackages
flattenTree