mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
feat(lib/extra): make toYAML return file content as was before
This commit is contained in:
parent
a8830c97c6
commit
9cfe310afb
1 changed files with 2 additions and 2 deletions
|
|
@ -24,11 +24,11 @@ rec {
|
||||||
loadYAML = path: importJSON (pkgs.runCommand "yaml-to-json" {
|
loadYAML = path: importJSON (pkgs.runCommand "yaml-to-json" {
|
||||||
} "${pkgs.remarshal}/bin/remarshal -i ${path} -if yaml -of json > $out");
|
} "${pkgs.remarshal}/bin/remarshal -i ${path} -if yaml -of json > $out");
|
||||||
|
|
||||||
toYAML = config: pkgs.runCommand "to-yaml" {
|
toYAML = config: builtins.readFile (pkgs.runCommand "to-yaml" {
|
||||||
buildInputs = [pkgs.remarshal];
|
buildInputs = [pkgs.remarshal];
|
||||||
} ''
|
} ''
|
||||||
remarshal -i ${pkgs.writeText "to-json" (builtins.toJSON config)} -if json -of yaml > $out
|
remarshal -i ${pkgs.writeText "to-json" (builtins.toJSON config)} -if json -of yaml > $out
|
||||||
'';
|
'');
|
||||||
|
|
||||||
toBase64 = value:
|
toBase64 = value:
|
||||||
builtins.readFile
|
builtins.readFile
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue