From 29fbef9adbe8c4851d0b00649adf885ccab0aafa Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 9 Nov 2024 06:20:33 +0100 Subject: [PATCH] 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. --- pkgs/pkgs-lib/formats.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/pkgs-lib/formats.nix b/pkgs/pkgs-lib/formats.nix index 556290be5f4e..8afccf3e0348 100644 --- a/pkgs/pkgs-lib/formats.nix +++ b/pkgs/pkgs-lib/formats.nix @@ -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;