guix-commits
[Top][All Lists]
Advanced

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

01/01: gnu: fish: Embed full path to Python.


From: Ricardo Wurmus
Subject: 01/01: gnu: fish: Embed full path to Python.
Date: Sun, 22 Jan 2017 09:16:58 +0000 (UTC)

rekado pushed a commit to branch master
in repository guix.

commit 79f3e82bdce9f3e4feeeeee75f40d24cad6e4b2b
Author: Ricardo Wurmus <address@hidden>
Date:   Sat Jan 21 22:57:12 2017 +0100

    gnu: fish: Embed full path to Python.
    
    Fixes <https://bugs.gnu.org/25467>.
    
    * gnu/packages/shells.scm (fish)[arguments]: Rename phase "patch-bc" to
    "embed-store-paths"; embed full path to Python.
---
 gnu/packages/shells.scm |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm
index 5237e81..16c76ef 100644
--- a/gnu/packages/shells.scm
+++ b/gnu/packages/shells.scm
@@ -5,6 +5,7 @@
 ;;; Copyright © 2015 Jeff Mickey <address@hidden>
 ;;; Copyright © 2016 Tobias Geerinckx-Rice <address@hidden>
 ;;; Copyright © 2016 Stefan Reichör <address@hidden>
+;;; Copyright © 2017 Ricardo Wurmus <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -106,14 +107,17 @@ direct descendant of NetBSD's Almquist Shell 
(@command{ash}).")
        #:configure-flags '("--sysconfdir=/etc")
        #:phases
        (modify-phases %standard-phases
-         ;; Replace 'bc' by its absolute file name in the store.
-         (add-after 'unpack 'patch-bc
+         ;; Embed absolute paths to store items.
+         (add-after 'unpack 'embed-store-paths
            (lambda* (#:key inputs outputs #:allow-other-keys)
              (substitute* '("share/functions/math.fish"
                             "share/functions/seq.fish")
                (("\\| bc")
                 (string-append "| " (assoc-ref %build-inputs "bc")
-                               "/bin/bc"))))))))
+                               "/bin/bc")))
+             (substitute* "share/functions/fish_update_completions.fish"
+               (("python") (which "python")))
+             #t)))))
     (synopsis "The friendly interactive shell")
     (description
      "Fish (friendly interactive shell) is a shell focused on interactive use,



reply via email to

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