fish: fix hidden dependency on utillinux on Linux
This commit is contained in:
parent
b3faef0d93
commit
da1f465b94
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchurl, ncurses, nettools, python, which, groff, gettext, man_db,
|
{ stdenv, fetchurl, ncurses, nettools, python, which, groff, gettext, man_db,
|
||||||
bc, libiconv, coreutils, gnused, kbd }:
|
bc, libiconv, coreutils, gnused, kbd, utillinux }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "fish-${version}";
|
name = "fish-${version}";
|
||||||
@ -43,6 +43,9 @@ stdenv.mkDerivation rec {
|
|||||||
"$out/share/fish/functions/prompt_pwd.fish"
|
"$out/share/fish/functions/prompt_pwd.fish"
|
||||||
substituteInPlace "$out/share/fish/functions/fish_default_key_bindings.fish" \
|
substituteInPlace "$out/share/fish/functions/fish_default_key_bindings.fish" \
|
||||||
--replace "clear;" "${ncurses}/bin/clear;"
|
--replace "clear;" "${ncurses}/bin/clear;"
|
||||||
|
'' + stdenv.lib.optionalString stdenv.isLinux ''
|
||||||
|
substituteInPlace "$out/share/fish/functions/__fish_print_help.fish" \
|
||||||
|
--replace "| ul" "| ${utillinux}/bin/ul"
|
||||||
'' + stdenv.lib.optionalString (!stdenv.isDarwin) ''
|
'' + stdenv.lib.optionalString (!stdenv.isDarwin) ''
|
||||||
sed -i "s|(hostname\||(${nettools}/bin/hostname\||" "$out/share/fish/functions/fish_prompt.fish"
|
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|Popen(\['manpath'|Popen(\['${man_db}/bin/manpath'|" "$out/share/fish/tools/create_manpage_completions.py"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user