summary refs log tree commit diff
path: root/gnu/packages/weechat.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/weechat.scm')
-rw-r--r--gnu/packages/weechat.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/packages/weechat.scm b/gnu/packages/weechat.scm
index 48250302c3..27349ec60d 100644
--- a/gnu/packages/weechat.scm
+++ b/gnu/packages/weechat.scm
@@ -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