2021-03-10 19:49:12 +01:00
|
|
|
{ lib, ... }:
|
|
|
|
let
|
|
|
|
inherit (lib) filterAttrs mapAttrs';
|
|
|
|
in
|
|
|
|
{
|
|
|
|
mapFilterAttrs = pred: f: attrs: filterAttrs pred (mapAttrs' f attrs);
|
2021-04-03 19:11:55 +02:00
|
|
|
|
|
|
|
genAttrs' = values: f: listToAttrs (map f values);
|
2021-03-10 19:49:12 +01:00
|
|
|
}
|