diff options
author | Profpatsch <mail@profpatsch.de> | 2016-11-06 01:51:13 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2016-11-17 19:46:41 +0100 |
commit | 61311665cb0f11c4688fc0013d732d85bbd66fca (patch) | |
tree | 3f742a70994fc274dc498d0c28b465d62805a8bb /lib/default.nix | |
parent | ba73dbbda61b14ec8e2ca0ab526d3b35ba1db74c (diff) | |
download | nixpkgs-61311665cb0f11c4688fc0013d732d85bbd66fca.tar nixpkgs-61311665cb0f11c4688fc0013d732d85bbd66fca.tar.gz nixpkgs-61311665cb0f11c4688fc0013d732d85bbd66fca.tar.bz2 nixpkgs-61311665cb0f11c4688fc0013d732d85bbd66fca.tar.lz nixpkgs-61311665cb0f11c4688fc0013d732d85bbd66fca.tar.xz nixpkgs-61311665cb0f11c4688fc0013d732d85bbd66fca.tar.zst nixpkgs-61311665cb0f11c4688fc0013d732d85bbd66fca.zip |
lib: add ini configuration generator
Many configurations are INI-style files. Attribute sets can be mapped rather painlessly to the INI format. This adds a function toINI inside a new generators library section. Also, unit tests for the default values are provided.
Diffstat (limited to 'lib/default.nix')
-rw-r--r-- | lib/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/default.nix b/lib/default.nix index cb9a9b0bd4d..c0d7899b882 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -27,6 +27,7 @@ let # misc debug = import ./debug.nix; + generators = import ./generators.nix; misc = import ./deprecated.nix; # domain-specific @@ -39,7 +40,7 @@ in customisation maintainers meta sources modules options types licenses platforms systems - debug misc + debug generators misc sandbox fetchers; } # !!! don't include everything at top-level; perhaps only the most |