From 9cfe310afb680b38b83ff248fa1ffc4c93af322b Mon Sep 17 00:00:00 2001 From: Jaka Hudoklin Date: Tue, 14 Jan 2020 19:11:24 +0000 Subject: [PATCH] feat(lib/extra): make toYAML return file content as was before --- lib/extra.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/extra.nix b/lib/extra.nix index 8442535..2a69eea 100644 --- a/lib/extra.nix +++ b/lib/extra.nix @@ -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