feat(lib/extra): make toYAML return file content as was before

This commit is contained in:
Jaka Hudoklin 2020-01-14 19:11:24 +00:00
parent a8830c97c6
commit 9cfe310afb
No known key found for this signature in database
GPG key ID: D1F18234B07BD6E2

View file

@ -24,11 +24,11 @@ rec {
loadYAML = path: importJSON (pkgs.runCommand "yaml-to-json" {
} "${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];
} ''
remarshal -i ${pkgs.writeText "to-json" (builtins.toJSON config)} -if json -of yaml > $out
'';
'');
toBase64 = value:
builtins.readFile