10 lines
191 B
Nix
10 lines
191 B
Nix
{ lib, ... }:
|
|
let
|
|
inherit (lib) filterAttrs mapAttrs';
|
|
in
|
|
{
|
|
mapFilterAttrs = pred: f: attrs: filterAttrs pred (mapAttrs' f attrs);
|
|
|
|
genAttrs' = values: f: listToAttrs (map f values);
|
|
}
|