Skip to content

Commit e8afaf8

Browse files
authored
Merge: element-web: escape JSON string (NixOS#369762)
2 parents f585e48 + 77e361e commit e8afaf8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkgs/by-name/el/element-web/package.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
lib,
23
stdenv,
34
jq,
45
element-web-unwrapped,
@@ -22,7 +23,7 @@ else
2223
mkdir -p $out
2324
ln -s ${element-web-unwrapped}/* $out
2425
rm $out/config.json
25-
jq -s '.[0] * $conf' "${element-web-unwrapped}/config.json" --argjson "conf" '${builtins.toJSON conf}' > "$out/config.json"
26+
jq -s '.[0] * $conf' "${element-web-unwrapped}/config.json" --argjson "conf" ${lib.escapeShellArg (builtins.toJSON conf)} > "$out/config.json"
2627
2728
runHook postInstall
2829
'';

0 commit comments

Comments
 (0)