gnu: weechat: Fix patching of assignments to 'python2_bin'.

Fixes a regression introduced in a9346fa.

* gnu/packages/weechat.scm (weechat)[arguments]: Make sure PYTHON2_BIN
  can be freed with 'free'.
This commit is contained in:
Ludovic Courtès 2015-11-18 18:01:50 +01:00
parent b567abcf1a
commit 7be4a4b0ae

View File

@ -87,10 +87,10 @@
(add-before 'build 'set-python-file-name
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "src/plugins/python/weechat-python.c"
(("python2_bin = .*;")
(string-append "python2_bin = \""
(("python2_bin = weechat_python_get_python2_bin.*;")
(string-append "python2_bin = strdup (\""
(assoc-ref inputs "python")
"/bin/python\";\n")))
"/bin/python\");\n")))
#t)))))
(synopsis "Extensible chat client")
(description "WeeChat (Wee Enhanced Environment for Chat) is an