git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #8818 from mstarzyk/fish-seq-fix

fish: Fixed "Could not autoload item 'seq'..."

commit1cd2148c8f405fa9853551be09b3638f9b6aa660 authorlethalman <lucabru@src.gnome.org> dateWed 15 Jul 2015, 01:04 (11 years ago) parent55ec4d6ad4e17e
1 file changed+5−3
pkgs/shells/fish/default.nix+5−3
pkgs/shells/fish/default.nix+5−3
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, ncurses, python, which, groff, gettext, man_db, bc, libiconv }:
1+{ stdenv, fetchurl, ncurses, python, which, groff, gettext, man_db, bc, libiconv, coreutils }:
22
33stdenv.mkDerivation rec {
44 name = "fish-${version}";
@@ -15,10 +15,12 @@ stdenv.mkDerivation rec {
1515 # Python: Autocompletion generated from manpages and config editing
1616 propagatedBuildInputs = [ python which groff gettext ]
1717 ++ stdenv.lib.optional (!stdenv.isDarwin) man_db
18− ++ [ bc ];
18+ ++ [ bc coreutils ];
1919
2020 postInstall = ''
21− sed -i "s|bc|${bc}/bin/bc|" "$out/share/fish/functions/seq.fish"
21+ sed -e "s|bc|${bc}/bin/bc|" \
22+ -e "s|/usr/bin/seq|${coreutils}/bin/seq|" \
23+ -i "$out/share/fish/functions/seq.fish"
2224 sed -i "s|which |${which}/bin/which |" "$out/share/fish/functions/type.fish"
2325 sed -i "s|nroff |${groff}/bin/nroff |" "$out/share/fish/functions/__fish_print_help.fish"
2426 sed -e "s|gettext |${gettext}/bin/gettext |" \