From bd53470e468f460f52bced2cf9a56548c16cd8e9 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); }