[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/07: gnu: fish: Use fish-foreign-env to source /etc/profile.
From: |
guix-commits |
Subject: |
07/07: gnu: fish: Use fish-foreign-env to source /etc/profile. |
Date: |
Mon, 28 Jan 2019 17:13:58 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 4bddd12ad540d45a33a5f9f129b896843dca603f
Author: Meiyo Peng <address@hidden>
Date: Sun Jan 20 21:42:15 2019 +0800
gnu: fish: Use fish-foreign-env to source /etc/profile.
* gnu/packages/shells.scm (fish): Use fish-foreign-env to source
/etc/profile
when user logs in.
Signed-off-by: Ludovic Courtès <address@hidden>
---
gnu/packages/shells.scm | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm
index 8e2ca2a..d056155 100644
--- a/gnu/packages/shells.scm
+++ b/gnu/packages/shells.scm
@@ -102,7 +102,8 @@ direct descendant of NetBSD's Almquist Shell
(@command{ash}).")
(base32 "1kzjd0n0sfslkd36lzrvvvgy3qwkd9y466bkrqlnhd5h9dhx77ga"))))
(build-system gnu-build-system)
(inputs
- `(("groff" ,groff) ; for 'fish --help'
+ `(("fish-foreign-env" ,fish-foreign-env)
+ ("groff" ,groff) ; for 'fish --help'
("ncurses" ,ncurses)
("pcre2" ,pcre2) ; don't use the bundled PCRE2
("python" ,python))) ; for fish_config and manpage completions
@@ -170,6 +171,25 @@ direct descendant of NetBSD's Almquist Shell
(@command{ash}).")
" $__extra_confdir\n")
port)
(close-port port))
+ #t))
+ ;; Use fish-foreign-env to source /etc/profile.
+ (add-before 'install 'source-etc-profile
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((port (open-file "share/__fish_build_paths.fish" "a")))
+ (display
+ (string-append
+ "\n\n"
+ "# Patched by Guix.\n"
+ "# Use fish-foreign-env to source /etc/profile.\n"
+ "if status is-login\n"
+ " set fish_function_path "
+ (assoc-ref inputs "fish-foreign-env") "/share/fish/functions"
+ " $__fish_datadir/functions\n"
+ " fenv source /etc/profile\n"
+ " set -e fish_function_path\n"
+ "end\n")
+ port)
+ (close-port port))
#t)))))
(synopsis "The friendly interactive shell")
(description
- branch master updated (5a23696 -> 4bddd12), guix-commits, 2019/01/28
- 03/07: channels: Turn off deprecation warnings when loading 'build-self.scm'., guix-commits, 2019/01/28
- 01/07: gnu: youtube-dl: Update to 2019.01.27., guix-commits, 2019/01/28
- 04/07: pull: Don't trigger 'hash guix' hint needlessly., guix-commits, 2019/01/28
- 07/07: gnu: fish: Use fish-foreign-env to source /etc/profile.,
guix-commits <=
- 05/07: gnu: fish: Update to 3.0.0., guix-commits, 2019/01/28
- 02/07: upstream: Temporarily skip failing test., guix-commits, 2019/01/28
- 06/07: gnu: Add fish-foreign-env., guix-commits, 2019/01/28