pkgs.formats.yaml: create an alias for yaml_1_1

To keep assumptions about pkgs.formats.yaml in tact we pin it to a format
that will emit YAML 1.1.

Future usage should specify the YAML version explicitly.
This commit is contained in:
Martin Weinelt 2024-11-09 06:20:33 +01:00
parent 29dafe503f
commit 29fbef9adb
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -76,8 +76,9 @@ rec {
};
yaml = {}: {
yaml = yaml_1_1;
yaml_1_1 = {}: {
generate = name: value: pkgs.callPackage ({ runCommand, remarshal_0_17 }: runCommand name {
nativeBuildInputs = [ remarshal_0_17 ];
value = builtins.toJSON value;