From cf5266fbda45ded5e114f9b8b58d1c0eb3ab6cc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Lima?= Date: Wed, 13 May 2026 20:05:36 +0100 Subject: [PATCH] pkgs-lib/formats: fix tests --- pkgs/pkgs-lib/formats.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/pkgs-lib/formats.nix b/pkgs/pkgs-lib/formats.nix index ee5b8aaec1a0..8c87c868de75 100644 --- a/pkgs/pkgs-lib/formats.nix +++ b/pkgs/pkgs-lib/formats.nix @@ -978,9 +978,9 @@ optionalAttrs allowAliases aliases __structuredAttrs = true; } '' - importsPath="$TMPDIR/imports" + export importsPath="$TMPDIR/imports" printf "%s" "$imports" > "$importsPath" - valuePath="$TMPDIR/value" + export valuePath="$TMPDIR/value" printf "%s" "$value" > "$valuePath" cat "$valuePath" python3 "$pythonGen" > $out @@ -1027,7 +1027,7 @@ optionalAttrs allowAliases aliases __structuredAttrs = true; } '' - valuePath="$TMPDIR/value" + export valuePath="$TMPDIR/value" printf "%s" "$value" > "$valuePath" python3 "$pythonGen" > $out xmllint $out > /dev/null