From 020a09adbbc53301c45514c76dd8489a5175bce0 Mon Sep 17 00:00:00 2001 From: Alexander Shabalin Date: Sun, 13 Dec 2015 22:52:35 +0300 Subject: fish: Use /bin/hostname on darwin. Fixes #11012. --- pkgs/shells/fish/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/shells/fish') diff --git a/pkgs/shells/fish/default.nix b/pkgs/shells/fish/default.nix index c4386b1a9fb..ef3794d5144 100644 --- a/pkgs/shells/fish/default.nix +++ b/pkgs/shells/fish/default.nix @@ -23,7 +23,6 @@ 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 |" \ @@ -31,6 +30,7 @@ stdenv.mkDerivation rec { substituteInPlace "$out/share/fish/functions/fish_default_key_bindings.fish" \ --replace "clear;" "${ncurses}/bin/clear;" '' + stdenv.lib.optionalString (!stdenv.isDarwin) '' + sed -i "s|(hostname\||(${nettools}/bin/hostname\||" "$out/share/fish/functions/fish_prompt.fish" sed -i "s|Popen(\['manpath'|Popen(\['${man_db}/bin/manpath'|" "$out/share/fish/tools/create_manpage_completions.py" '' + '' sed -i "s|/sbin /usr/sbin||" \ -- cgit 1.4.1