From 04c1b180862888302ddfb2e3ad9eaa63afc60cf8 Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Tue, 17 May 2022 05:27:56 -0300 Subject: [PATCH] feat: add convenience eachDefaultSystemMap (#60) --- default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/default.nix b/default.nix index 467e441..8c2c729 100644 --- a/default.nix +++ b/default.nix @@ -143,6 +143,9 @@ let in builtins.foldl' op { } systems ; + + # eachSystemMap using defaultSystems + eachDefaultSystemMap = eachSystemMap defaultSystems; # Builds a map from =value to . = 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