Skip to content

Commit

Permalink
feat: add convenience eachDefaultSystemMap (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
Misterio77 authored May 17, 2022
1 parent a97445c commit 04c1b18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -213,6 +216,7 @@ let
defaultSystems
eachDefaultSystem
eachSystem
eachDefaultSystemMap
eachSystemMap
filterPackages
flattenTree
Expand Down

0 comments on commit 04c1b18

Please sign in to comment.