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.
This commit is contained in:
Wolfgang Walther
2024-11-12 21:09:42 +01:00
parent 7b86326c21
commit 23b7dc8066
+1 -1
View File
@@ -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)