diff options
author | tv <tv@krebsco.de> | 2016-06-13 01:48:59 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-06-13 01:48:59 +0200 |
commit | fb226f349843c080d6c81b60301a3a93977b99a4 (patch) | |
tree | d333b1f8fda87a97a7cdf9aa4a64fbc3243fb739 /krebs/4lib/default.nix | |
parent | 3846e08de8187fc3ba531d41f830002847466976 (diff) |
lib.genAttrs': init
Diffstat (limited to 'krebs/4lib/default.nix')
-rw-r--r-- | krebs/4lib/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/krebs/4lib/default.nix b/krebs/4lib/default.nix index 09d416d44..afff17296 100644 --- a/krebs/4lib/default.nix +++ b/krebs/4lib/default.nix @@ -56,6 +56,8 @@ let out = rec { mapAttrs (name: _: path + "/${name}") (filterAttrs (_: eq "directory") (readDir path)); + genAttrs' = names: f: listToAttrs (map f names); + setAttr = name: value: set: set // { ${name} = value; }; optionalTrace = c: msg: x: if c then trace msg x else x; |