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:
parent
67d992c100
commit
8727f1aeb1
|
@ -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 {
|
stdenv.mkDerivation rec {
|
||||||
name = "fish-${version}";
|
name = "fish-${version}";
|
||||||
|
@ -12,8 +12,8 @@ stdenv.mkDerivation rec {
|
||||||
buildInputs = [ ncurses ];
|
buildInputs = [ ncurses ];
|
||||||
|
|
||||||
# Required binaries during execution
|
# Required binaries during execution
|
||||||
# Python27: Autocompletion generated from manpages and config editing
|
# Python: Autocompletion generated from manpages and config editing
|
||||||
propagatedBuildInputs = [ python27 which groff gettext man_db bc ];
|
propagatedBuildInputs = [ python which groff gettext man_db bc ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
sed -i "s|bc|${bc}/bin/bc|" "$out/share/fish/functions/seq.fish"
|
sed -i "s|bc|${bc}/bin/bc|" "$out/share/fish/functions/seq.fish"
|
||||||
|
|
|
@ -2487,7 +2487,9 @@ let
|
||||||
|
|
||||||
dash = callPackage ../shells/dash { };
|
dash = callPackage ../shells/dash { };
|
||||||
|
|
||||||
fish = callPackage ../shells/fish { };
|
fish = callPackage ../shells/fish {
|
||||||
|
python = python27Full;
|
||||||
|
};
|
||||||
|
|
||||||
tcsh = callPackage ../shells/tcsh { };
|
tcsh = callPackage ../shells/tcsh { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue