From 23b7dc80662fdf2ca5471beb2eac412c3176b1e7 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Wed, 30 Oct 2024 19:23:01 +0100 Subject: [PATCH] picard: set localedir without relying on bash eval To be able to remove the bash-eval behavior for setupPyGlobalFlags, we change $out to use placeholder "out" instead. Confirmed that the locales are still loaded from the correct path as demonstrated in #284050. --- pkgs/by-name/pi/picard/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/pi/picard/package.nix b/pkgs/by-name/pi/picard/package.nix index e43e39e5a47d..e39f26d4a84e 100644 --- a/pkgs/by-name/pi/picard/package.nix +++ b/pkgs/by-name/pi/picard/package.nix @@ -62,7 +62,7 @@ pythonPackages.buildPythonApplication rec { pyyaml ]; - setupPyGlobalFlags = [ "build" "--disable-autoupdate" "--localedir=$out/share/locale" ]; + setupPyGlobalFlags = [ "build" "--disable-autoupdate" "--localedir=${placeholder "out"}/share/locale" ]; preCheck = '' export HOME=$(mktemp -d)