summaryrefslogtreecommitdiffstats
path: root/lib/default.nix
diff options
context:
space:
mode:
authorGabriel Gonzalez <Gabriel439@gmail.com>2019-12-11 16:30:05 -0800
committerGabriel Gonzalez <Gabriel439@gmail.com>2019-12-11 16:30:05 -0800
commit183a99734f666b6bd508f4c81e887dbc746fec69 (patch)
tree5ac296649a3555d5f27a1155cf546d110e11ff6c /lib/default.nix
parent98e57f8999cc88e3d4b2250adef51747ade5105e (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.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/default.nix b/lib/default.nix
index 8af531525860..5798c6bba007 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