3
0
Fork 0
forked from mirrors/nixpkgs

fish: fix 'fish_config' by providing python ncurses module

Gets rid of the "ImportError: No module named _curses" (and failure to
display page) when clicking the "prompt" page in the 'fish_config' web
UI.
This commit is contained in:
Bjørn Forsman 2014-06-30 20:39:02 +02:00
parent 67d992c100
commit 8727f1aeb1
2 changed files with 6 additions and 4 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, ncurses, python27, which, groff, gettext, man_db, bc }:
{ stdenv, fetchurl, ncurses, python, which, groff, gettext, man_db, bc }:
stdenv.mkDerivation rec {
name = "fish-${version}";
@ -12,8 +12,8 @@ stdenv.mkDerivation rec {
buildInputs = [ ncurses ];
# Required binaries during execution
# Python27: Autocompletion generated from manpages and config editing
propagatedBuildInputs = [ python27 which groff gettext man_db bc ];
# Python: Autocompletion generated from manpages and config editing
propagatedBuildInputs = [ python which groff gettext man_db bc ];
postInstall = ''
sed -i "s|bc|${bc}/bin/bc|" "$out/share/fish/functions/seq.fish"

View file

@ -2487,7 +2487,9 @@ let
dash = callPackage ../shells/dash { };
fish = callPackage ../shells/fish { };
fish = callPackage ../shells/fish {
python = python27Full;
};
tcsh = callPackage ../shells/tcsh { };