mirror of
https://github.com/numtide/flake-utils.git
synced 2024-09-11 20:17:13 +03:00
feat: add convenience eachDefaultSystemMap (#60)
This commit is contained in:
parent
a97445c4fc
commit
04c1b18086
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user