summary refs log tree commit diff
path: root/pkgs/shells/fish
diff options
context:
space:
mode:
authorSamuel Rivas <samuelrivas@gmail.com>2015-11-06 09:55:55 +0100
committerSamuel Rivas <samuelrivas@gmail.com>2015-11-06 09:55:55 +0100
commitd3ed672b6a97ab70d5dcdb06fffde816ab2eefc3 (patch)
treef9ca8ed3bad03b799a8e241d499751bf40b8b64a /pkgs/shells/fish
parent5a162cd06891c23a05a4b3070d89d8e78821e4e8 (diff)
downloadnixpkgs-d3ed672b6a97ab70d5dcdb06fffde816ab2eefc3.tar
nixpkgs-d3ed672b6a97ab70d5dcdb06fffde816ab2eefc3.tar.gz
nixpkgs-d3ed672b6a97ab70d5dcdb06fffde816ab2eefc3.tar.bz2
nixpkgs-d3ed672b6a97ab70d5dcdb06fffde816ab2eefc3.tar.lz
nixpkgs-d3ed672b6a97ab70d5dcdb06fffde816ab2eefc3.tar.xz
nixpkgs-d3ed672b6a97ab70d5dcdb06fffde816ab2eefc3.tar.zst
nixpkgs-d3ed672b6a97ab70d5dcdb06fffde816ab2eefc3.zip
fish: fix use hostname from the store instead of from the environment
Diffstat (limited to 'pkgs/shells/fish')
-rw-r--r--pkgs/shells/fish/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/shells/fish/default.nix b/pkgs/shells/fish/default.nix
index 3031d397875..7ee4bd8707d 100644
--- a/pkgs/shells/fish/default.nix
+++ b/pkgs/shells/fish/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, ncurses, python, which, groff, gettext, man_db, bc, libiconv, coreutils }:
+{ stdenv, fetchurl, ncurses, nettools, python, which, groff, gettext, man_db, bc, libiconv, coreutils }:
 
 stdenv.mkDerivation rec {
   name = "fish-${version}";
@@ -23,6 +23,7 @@ stdenv.mkDerivation rec {
         -i "$out/share/fish/functions/seq.fish" \
            "$out/share/fish/functions/math.fish"
     sed -i "s|which |${which}/bin/which |" "$out/share/fish/functions/type.fish"
+    sed -i "s|(hostname\||(${nettools}/bin/hostname\||" "$out/share/fish/functions/fish_prompt.fish"
     sed -i "s|nroff |${groff}/bin/nroff |" "$out/share/fish/functions/__fish_print_help.fish"
     sed -e "s|gettext |${gettext}/bin/gettext |" \
         -e "s|which |${which}/bin/which |" \