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:
parent
29dafe503f
commit
29fbef9adb
@ -76,8 +76,9 @@ rec {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
yaml = {}: {
|
yaml = yaml_1_1;
|
||||||
|
|
||||||
|
yaml_1_1 = {}: {
|
||||||
generate = name: value: pkgs.callPackage ({ runCommand, remarshal_0_17 }: runCommand name {
|
generate = name: value: pkgs.callPackage ({ runCommand, remarshal_0_17 }: runCommand name {
|
||||||
nativeBuildInputs = [ remarshal_0_17 ];
|
nativeBuildInputs = [ remarshal_0_17 ];
|
||||||
value = builtins.toJSON value;
|
value = builtins.toJSON value;
|
||||||
|
Loading…
Reference in New Issue
Block a user