Merge pull request #8818 from mstarzyk/fish-seq-fix

fish: Fixed "Could not autoload item 'seq'..."
This commit is contained in:
lethalman 2015-07-15 01:04:49 +02:00
commit 1cd2148c8f

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, ncurses, python, which, groff, gettext, man_db, bc, libiconv }:
{ stdenv, fetchurl, ncurses, python, which, groff, gettext, man_db, bc, libiconv, coreutils }:
stdenv.mkDerivation rec {
name = "fish-${version}";
@ -15,10 +15,12 @@ stdenv.mkDerivation rec {
# Python: Autocompletion generated from manpages and config editing
propagatedBuildInputs = [ python which groff gettext ]
++ stdenv.lib.optional (!stdenv.isDarwin) man_db
++ [ bc ];
++ [ bc coreutils ];
postInstall = ''
sed -i "s|bc|${bc}/bin/bc|" "$out/share/fish/functions/seq.fish"
sed -e "s|bc|${bc}/bin/bc|" \
-e "s|/usr/bin/seq|${coreutils}/bin/seq|" \
-i "$out/share/fish/functions/seq.fish"
sed -i "s|which |${which}/bin/which |" "$out/share/fish/functions/type.fish"
sed -i "s|nroff |${groff}/bin/nroff |" "$out/share/fish/functions/__fish_print_help.fish"
sed -e "s|gettext |${gettext}/bin/gettext |" \