mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 07:00:43 +00:00
fish: Use /bin/hostname on darwin. Fixes #11012.
This commit is contained in:
parent
564757ab9b
commit
020a09adbb
|
@ -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||" \
|
||||
|
|
Loading…
Reference in a new issue