git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #46324 from Ma27/weechat-script-fixes

weechat: fix quoting for ${} syntax

commitc04198a99285f9a6701e80665d5fa9e633e34b72 authorTimo Kaufmann <timokau@zoho.com> dateFri 7 Sep 2018, 19:02 (8 years ago) parentb11cfc2e2b4644
1 file changed+2−2
pkgs/applications/networking/irc/weechat/default.nix+2−2
pkgs/applications/networking/irc/weechat/default.nix+2−2
@@ -133,13 +133,13 @@ in if configure == null then weechat else
133133
134134 scripts = builtins.concatStringsSep ";" (lib.foldl (scripts: drv: scripts ++ mkScript drv)
135135 [ ] (config.scripts or []));
136− in "${scripts}\n${init}";
136+ in "${scripts};${init}";
137137
138138 mkWeechat = bin: (writeScriptBin bin ''
139139 #!${stdenv.shell}
140140 export WEECHAT_EXTRA_LIBDIR=${pluginsDir}
141141 ${lib.concatMapStringsSep "\n" (p: lib.optionalString (p ? extraEnv) p.extraEnv) plugins}
142− exec ${weechat}/bin/${bin} "$@" --run-command "${init}"
142+ exec ${weechat}/bin/${bin} "$@" --run-command ${lib.escapeShellArg init}
143143 '') // {
144144 inherit (weechat) name meta;
145145 unwrapped = weechat;