guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: gnu: weechat: Record the absolute file name of 'python'.


From: Ludovic Courtès
Subject: 02/02: gnu: weechat: Record the absolute file name of 'python'.
Date: Wed, 18 Nov 2015 16:47:31 +0000

civodul pushed a commit to branch master
in repository guix.

commit a9346faee6f61d7a2b0e066b110c9ce660827dbd
Author: Ludovic Courtès <address@hidden>
Date:   Wed Nov 18 17:42:44 2015 +0100

    gnu: weechat: Record the absolute file name of 'python'.
    
    Fixes <http://bugs.gnu.org/21879>.
    Reported by Luis Felipe López Acevedo <address@hidden>.
    
    * gnu/packages/weechat.scm (weechat)[arguments]: Add
      'set-python-file-name' phase.
---
 gnu/packages/weechat.scm |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/gnu/packages/weechat.scm b/gnu/packages/weechat.scm
index 18508dd..c0fd8c6 100644
--- a/gnu/packages/weechat.scm
+++ b/gnu/packages/weechat.scm
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright � 2014 Kevin Lemonnier <address@hidden>
+;;; Copyright � 2015 Ludovic Court�s <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -82,7 +83,15 @@
        #:phases (modify-phases %standard-phases
                   (add-before 'configure 'autogen
                     (lambda _
-                      (zero? (system* "./autogen.sh")))))))
+                      (zero? (system* "./autogen.sh"))))
+                  (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 = \""
+                                        (assoc-ref inputs "python")
+                                        "/bin/python\";\n")))
+                      #t)))))
     (synopsis "Extensible chat client")
     (description "WeeChat (Wee Enhanced Environment for Chat) is an
 Internet Relay Chat client, which is designed to be light and fast.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]