nixos/knot-resolver: use remarshal v2

This commit is contained in:
Robert Schütz
2026-07-30 09:55:06 -07:00
parent 34ab5d3a78
commit 74dc5556d1
@@ -10,17 +10,17 @@ let
configFile = pkgs.callPackage (
{
runCommandLocal,
remarshal_0_17,
remarshal,
stdenv,
}:
runCommandLocal "knot-resolver.yaml"
{
nativeBuildInputs = [ remarshal_0_17 ];
nativeBuildInputs = [ remarshal ];
value = builtins.toJSON cfg.settings;
passAsFile = [ "value" ];
}
''
json2yaml "$valuePath" "$out"
remarshal --from json --to yaml-1.1 "$valuePath" "$out"
${
# We skip validation if the build platform cannot execute # the binary targeting the host platform.
lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''