mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
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 {
|
||||
nativeBuildInputs = [ remarshal_0_17 ];
|
||||
value = builtins.toJSON value;
|
||||
|
|
Loading…
Reference in a new issue