From b30d574069a3a29a6f82e5ffe0181aa974058fe3 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 3 Apr 2021 17:11:55 +0000 Subject: [PATCH] lib: attrs: add genAttrs' function --- lib/attrs.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/attrs.nix b/lib/attrs.nix index 4595467..17ed3bf 100644 --- a/lib/attrs.nix +++ b/lib/attrs.nix @@ -4,4 +4,6 @@ let in { mapFilterAttrs = pred: f: attrs: filterAttrs pred (mapAttrs' f attrs); + + genAttrs' = values: f: listToAttrs (map f values); }