Unverified Commit 29fbef9a authored by Martin Weinelt's avatar Martin Weinelt
Browse files

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.
parent 29dafe50
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;