fix minor mistake

This commit is contained in:
Alexandra Østermark
2025-11-12 20:10:17 +01:00
parent 709ab63d5a
commit 9a4dc02b20
+6 -4
View File
@@ -11,10 +11,12 @@ with lib; let
yamlGenerator = {preserved-tags ? []}: let
selectors =
pkgs.lib.strings.concatStringsSep "/"
(builtins.map (x: ''
with((.. | select(kind == "scalar") | select(test("^!${x} .*"))); . = sub("!${x} ", "") | . tag="!${x}")
''))
preserved-tags;
(builtins.map (
x: ''
with((.. | select(kind == "scalar") | select(test("^!${x} .*"))); . = sub("!${x} ", "") | . tag="!${x}")
''
)
preserved-tags);
in {
generate = name: value:
pkgs.callPackage (