summaryrefslogtreecommitdiffstats
path: root/krebs/4lib
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-06-13 01:48:59 +0200
committertv <tv@krebsco.de>2016-06-13 01:48:59 +0200
commitfb226f349843c080d6c81b60301a3a93977b99a4 (patch)
treed333b1f8fda87a97a7cdf9aa4a64fbc3243fb739 /krebs/4lib
parent3846e08de8187fc3ba531d41f830002847466976 (diff)
lib.genAttrs': init
Diffstat (limited to 'krebs/4lib')
-rw-r--r--krebs/4lib/default.nix2
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;