mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
8 lines
298 B
Nix
8 lines
298 B
Nix
(self: super: {
|
|
writeTOML = object: super.runCommand "writeTOML" {} ''
|
|
echo '${builtins.toJSON object}' | ${super.remarshal}/bin/json2toml > $out
|
|
'';
|
|
toTOML = object: builtins.readFile (self.writeTOML object);
|
|
writeJSON = path: object: super.writeText path (builtins.toJSON object);
|
|
})
|