writeTOML
pkgs.writers.writeTOML
Functor
Docs pulled from | This Revision | about 1 hour ago
Contribute
Enhance the ecosystem with your expertise! Contribute to fill the gaps in documentation. Your input can make a difference.
Noogle detected
This is a Functor
Learn about functors
Implementation
The following is the current implementation of this function.
name: value:
pkgs.callPackage (
{ runCommand, remarshal }:
runCommand name
{
nativeBuildInputs = [ remarshal ];
value = builtins.toJSON value;
preferLocalBuild = true;
__structuredAttrs = true;
}
''
valuePath="$TMPDIR/value"
printf "%s" "$value" > "$valuePath"
json2toml "$valuePath" "$out"
''
) { }