Skip to content

Commit 7f624ce

Browse files
committed
Fix yq yaml conversion
1 parent 00389cd commit 7f624ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nix/process-compose/settings/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ in
107107
lib.pipe attrs [ f f ];
108108
toYAMLFile =
109109
attrs:
110-
pkgs.runCommand "toYamlFile" { buildInputs = [ pkgs.yq-go ]; } ''
111-
yq -P '.' ${pkgs.writeTextFile { name = "process-compose-${name}.json"; text = (builtins.toJSON attrs); }} > $out
110+
pkgs.runCommand "${name}.yaml" { buildInputs = [ pkgs.yq-go ]; } ''
111+
yq -oy -P '.' ${pkgs.writeTextFile { name = "process-compose-${name}.json"; text = (builtins.toJSON attrs); }} > $out
112112
'';
113113
in
114114
toYAMLFile (removeNullAndEmptyAttrs config.settings);

0 commit comments

Comments
 (0)