diff options
author | Gabriel Gonzalez <Gabriel439@gmail.com> | 2019-12-11 16:30:05 -0800 |
---|---|---|
committer | Gabriel Gonzalez <Gabriel439@gmail.com> | 2019-12-11 16:30:05 -0800 |
commit | 183a99734f666b6bd508f4c81e887dbc746fec69 (patch) | |
tree | 5ac296649a3555d5f27a1155cf546d110e11ff6c /lib/default.nix | |
parent | 98e57f8999cc88e3d4b2250adef51747ade5105e (diff) |
Add `pkgs.lib.renderOptions`
This adds a new utility to intelligently convert Nix records to command line options to reduce boilerplate for simple use cases and to also reduce the likelihood of malformed command lines
Diffstat (limited to 'lib/default.nix')
-rw-r--r-- | lib/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/default.nix b/lib/default.nix index 8af5315258606..5798c6bba007c 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -39,6 +39,7 @@ let # misc asserts = callLibs ./asserts.nix; + cli = callLibs ./cli.nix; debug = callLibs ./debug.nix; generators = callLibs ./generators.nix; misc = callLibs ./deprecated.nix; @@ -120,6 +121,7 @@ let isOptionType mkOptionType; inherit (asserts) assertMsg assertOneOf; + inherit (cli) renderOptions; inherit (debug) addErrorContextToAttrs traceIf traceVal traceValFn traceXMLVal traceXMLValMarked traceSeq traceSeqN traceValSeq traceValSeqFn traceValSeqN traceValSeqNFn traceShowVal |