fish: fix hidden dependency on ${glibc}/bin/getent on Linux
This commit is contained in:
parent
da1f465b94
commit
010271d47a
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
{ stdenv, fetchurl, ncurses, nettools, python, which, groff, gettext, man_db,
|
||||
bc, libiconv, coreutils, gnused, kbd, utillinux }:
|
||||
bc, libiconv, coreutils, gnused, kbd, utillinux, glibc }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "fish-${version}";
|
||||
|
@ -46,6 +46,10 @@ stdenv.mkDerivation rec {
|
|||
'' + stdenv.lib.optionalString stdenv.isLinux ''
|
||||
substituteInPlace "$out/share/fish/functions/__fish_print_help.fish" \
|
||||
--replace "| ul" "| ${utillinux}/bin/ul"
|
||||
|
||||
for cur in $out/share/fish/functions/*.fish; do
|
||||
substituteInPlace "$cur" --replace "/usr/bin/getent" "${glibc}/bin/getent"
|
||||
done
|
||||
'' + 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"
|
||||
|
|
Loading…
Reference in a new issue