2024-06-01 11:00:53 +00:00
|
|
|
lib: {
|
|
|
|
importers = {
|
|
|
|
## Import a JSON file as a Nix value.
|
|
|
|
##
|
2024-06-03 09:57:13 +00:00
|
|
|
## @notest
|
2024-06-01 11:00:53 +00:00
|
|
|
## @type Path -> a
|
|
|
|
json = file: builtins.fromJSON (builtins.readFile file);
|
|
|
|
|
|
|
|
## Import a TOML file as a Nix value.
|
|
|
|
##
|
2024-06-03 09:57:13 +00:00
|
|
|
## @notest
|
2024-06-01 11:00:53 +00:00
|
|
|
## @type Path -> a
|
|
|
|
toml = file: builtins.fromTOML (builtins.readFile file);
|
|
|
|
};
|
|
|
|
}
|