mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-15 11:50:09 +00:00
nixos/ifstate: use structuredAttrs instead of passAsFile (#563194)
This commit is contained in:
@@ -20,11 +20,12 @@ let
|
||||
yq
|
||||
check-jsonschema
|
||||
];
|
||||
strictDeps = true;
|
||||
value = builtins.toJSON value;
|
||||
passAsFile = [ "value" ];
|
||||
__structuredAttrs = true;
|
||||
}
|
||||
''
|
||||
yq --yaml-output . $valuePath > $out
|
||||
printf "%s" "$value" | yq --yaml-output . > $out
|
||||
check-jsonschema --schemafile "${cfg.package.passthru.jsonschema}" "$out"
|
||||
sed -i $'s|\'!include |!include \'|' $out
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user