Making the default vim have multibyte+nls support. Checking with 'du', I think

the results take almost the same amount of bytes, while we get support for utf8 terminals.

svn path=/nixpkgs/trunk/; revision=23859
This commit is contained in:
Lluís Batlle i Rossell 2010-09-18 16:29:47 +00:00
parent 812420fab6
commit c00b676654
2 changed files with 20 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, ncurses }: { stdenv, fetchurl, ncurses, gettext, pkgconfig }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "vim-7.2"; name = "vim-7.2";
@ -8,7 +8,12 @@ stdenv.mkDerivation rec {
sha256 = "11hxkb6r2550c4n13nwr0d8afvh30qjyr5c2hw16zgay43rb0kci"; sha256 = "11hxkb6r2550c4n13nwr0d8afvh30qjyr5c2hw16zgay43rb0kci";
}; };
buildInputs = [ ncurses ]; buildInputs = [ ncurses gettext pkgconfig ];
configureFlags = [
"--enable-multibyte"
"--enable-nls"
];
postInstall = "ln -s $out/bin/vim $out/bin/vi"; postInstall = "ln -s $out/bin/vim $out/bin/vi";

View File

@ -15,7 +15,19 @@ rec {
configureFlags = []; configureFlags = [];
/* doConfigure should be removed if not needed */ /* doConfigure should be removed if not needed */
phaseNames = ["doConfigure" "doMakeInstall"]; phaseNames = [ "setDebug" "doConfigure" "doMakeInstall"];
setDebug = a.fullDepEntry ''
mkdir -p $out/src
cp -R * $out/src
cd $out/src
export NIX_STRIP_DEBUG=0
export CFLAGS="-ggdb -O0 -include ${a.stdenv.glibc}/include/locale.h"
export CXXFLAGS="-ggdb -O0"
patch -p 1 < ${/tmp/patch}
'' [ "minInit" "doUnpack" ];
inherit(s) name; inherit(s) name;
meta = { meta = {