2015-07-24 10:23:52 +00:00
|
|
|
{ lib, ... }:
|
|
|
|
|
2015-07-24 18:48:00 +00:00
|
|
|
with builtins;
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
builtins // lib // rec {
|
|
|
|
|
|
|
|
addName = name: set:
|
|
|
|
set // { inherit name; };
|
|
|
|
|
|
|
|
addNames = mapAttrs addName;
|
2015-07-24 10:23:52 +00:00
|
|
|
|
|
|
|
types = import ./types.nix { inherit lib; };
|
|
|
|
|
2015-07-26 19:04:13 +00:00
|
|
|
dns = import ./dns.nix { inherit lib; };
|
|
|
|
listset = import ./listset.nix { inherit lib; };
|
2015-08-28 18:09:54 +00:00
|
|
|
shell = import ./shell.nix { inherit lib; };
|
2015-07-26 19:04:13 +00:00
|
|
|
tree = import ./tree.nix { inherit lib; };
|
2015-08-28 19:31:59 +00:00
|
|
|
|
|
|
|
toC = x: {
|
|
|
|
list = "{ ${concatStringsSep ", " (map toC x)} }";
|
|
|
|
null = "NULL";
|
|
|
|
string = toJSON x; # close enough
|
|
|
|
}.${typeOf x};
|
2015-07-24 10:23:52 +00:00
|
|
|
}
|