query
On this page

fromTOML

builtins.fromTOML

Primop
Docs pulled from | This Revision | about 13 hours ago

Takes 1 arguments

e


Convert a TOML string to a Nix value. For example,

builtins.fromTOML ''
  x=1
  s="a"
  [table]
  y=2
''

returns the value { s = "a"; table = { y = 2; }; x = 1; }.

This function is not defined in a .nix file. It is likely a builtins function or an alias of a builtins function. builtins functions are predefined functions provided by Nix.

Noogle detected

Detected Type
fromTOML :: String -> AttrSet

Implementation

This function is implemented in c++ and is part of the native nix runtime.