diff options
author | lassulus <lass@aidsballs.de> | 2015-10-15 15:18:29 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2015-10-15 15:18:29 +0200 |
commit | ba5479b4cda8bc70fc67e6e0d90d90aa7a7b9dab (patch) | |
tree | ee5b8c780ab6dfd7c0c8b51346a9173d98613fe5 /krebs/4lib | |
parent | a8816bcfe351c1fe9e1a00b27707b56eb544d390 (diff) | |
parent | 338df3310352163d3cce850e6ff461c2cdf58eb5 (diff) |
Merge remote-tracking branch 'cd/master'
Diffstat (limited to 'krebs/4lib')
-rw-r--r-- | krebs/4lib/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/krebs/4lib/default.nix b/krebs/4lib/default.nix index ca7219c7e..78f719988 100644 --- a/krebs/4lib/default.nix +++ b/krebs/4lib/default.nix @@ -5,6 +5,8 @@ with lib; builtins // lib // rec { + eq = x: y: x == y; + addName = name: set: set // { inherit name; }; @@ -22,4 +24,8 @@ builtins // lib // rec { null = "NULL"; string = toJSON x; # close enough }.${typeOf x}; + + subdirsOf = path: + mapAttrs (name: _: path + "/${name}") + (filterAttrs (_: eq "directory") (readDir path)); } |