mirror of
https://github.com/Platonic-Systems/process-compose-flake.git
synced 2024-09-11 14:07:00 +03:00
Fix yq yaml conversion
This commit is contained in:
parent
00389cd1cd
commit
7f624ce916
@ -107,8 +107,8 @@ in
|
||||
lib.pipe attrs [ f f ];
|
||||
toYAMLFile =
|
||||
attrs:
|
||||
pkgs.runCommand "toYamlFile" { buildInputs = [ pkgs.yq-go ]; } ''
|
||||
yq -P '.' ${pkgs.writeTextFile { name = "process-compose-${name}.json"; text = (builtins.toJSON attrs); }} > $out
|
||||
pkgs.runCommand "${name}.yaml" { buildInputs = [ pkgs.yq-go ]; } ''
|
||||
yq -oy -P '.' ${pkgs.writeTextFile { name = "process-compose-${name}.json"; text = (builtins.toJSON attrs); }} > $out
|
||||
'';
|
||||
in
|
||||
toYAMLFile (removeNullAndEmptyAttrs config.settings);
|
||||
|
Loading…
Reference in New Issue
Block a user