mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
fish: fix hidden dependency on ${glibc}/bin/getent on Linux
This commit is contained in:
parent
da1f465b94
commit
010271d47a
@ -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, utillinux }:
|
bc, libiconv, coreutils, gnused, kbd, utillinux, glibc }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "fish-${version}";
|
name = "fish-${version}";
|
||||||
@ -46,6 +46,10 @@ stdenv.mkDerivation rec {
|
|||||||
'' + stdenv.lib.optionalString stdenv.isLinux ''
|
'' + stdenv.lib.optionalString stdenv.isLinux ''
|
||||||
substituteInPlace "$out/share/fish/functions/__fish_print_help.fish" \
|
substituteInPlace "$out/share/fish/functions/__fish_print_help.fish" \
|
||||||
--replace "| ul" "| ${utillinux}/bin/ul"
|
--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) ''
|
'' + 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…
Reference in New Issue
Block a user