@@ -100,66 +100,38 @@ let vimHelpTags = ''
100100in rec
101101
102102{
103−
104− vim-addon-nix = {
105− # github.com/MarcWeber/vim-addon-nix provides some additional support for
106− # editing .nix files
107−
108− # This is a placeholder, because I think you always should be using latest
109− # git version. It also depends on some additional plugins (see addon-info.json)
103+ airline = buildVimPlugin {
104+ name = "airline-git-2014-08-02";
105+ src = fetchgit {
106+ url = "https://github.com/bling/vim-airline.git";
107+ rev = "2114e7025188a941e5c63b1f942d576adb98d8a4";
108+ sha256 = "b6fc4d0545f8b7e107c5f80b94cf536a2b1fdd55d9f2484a29a007911e96130f";
109+ };
110110 };
111111
112− youcompleteme = stdenv.mkDerivation {
112+ align = buildVimPlugin {
113+ name = "align-git-2012-08-08";
113114 src = fetchgit {
114− url = "https://github.com/Valloric/YouCompleteMe.git";
115− rev = "a2cae90f7ba1746bf1209edd6739f87d5914b375";
116− sha256 = "1yxrxskxnr2da5awm59ra4s9wg67rimcbazvln9bayg9saxs540d";
115+ url = "https://github.com/vim-scripts/Align.git";
116+ rev = "787662fe90cd057942bc5b682fd70c87e1a9dd77";
117+ sha256 = "f7b5764357370f03546556bd45558837f3790b0e86afadb63cd04d714a668a29";
117118 };
118−
119− name = "vimplugin-youcompleteme-20140929"; # commit date
120− buildInputs = [ python cmake clang.clang ];
121−
122− configurePhase = ":";
123−
124− buildPhase = ''
125− patchShebangs .
126−
127− target=$out/share/vim-plugins/youcompleteme
128− mkdir -p $target
129− cp -a ./ $target
130−
131− mkdir $target/build
132− cd $target/build
133− cmake -G "Unix Makefiles" . $target/third_party/ycmd/cpp -DPYTHON_LIBRARIES:PATH=${python}/lib/libpython2.7.so -DPYTHON_INCLUDE_DIR:PATH=${python}/include/python2.7 -DUSE_CLANG_COMPLETER=ON -DUSE_SYSTEM_LIBCLANG=ON
134− make ycm_support_libs -j''${NIX_BUILD_CORES} -l''${NIX_BUILD_CORES}}
135− ${bash}/bin/bash $target/install.sh --clang-completer --system-libclang
136−
137− ${vimHelpTags}
138− vimHelpTags $target
139− '';
140−
141− # TODO: implement proper install phase rather than keeping everything in store
142− # TODO: support llvm based C completion, See README of git repository
143− installPhase = ":";
144−
145− meta = {
146− description = "fastest non utf-8 aware word and C completion engine for Vim";
147− homepage = http://github.com/Valloric/YouCompleteMe;
148− license = stdenv.lib.licenses.gpl3;
149− maintainers = [stdenv.lib.maintainers.marcweber];
150− platforms = stdenv.lib.platforms.linux;
151− };
152119 };
153− YouCompleteMe = youcompleteme; # backwards compat, added 2014-10-18
154120
155− syntastic = buildVimPlugin rec {
156− version = "3.4.0";
157− name = "syntastic-${version}";
121+ alternate = stdenv.mkDerivation rec {
122+ version = "2.18";
123+ name = "alternate-${version}";
158124
159125 src = fetchurl {
160− url = "https://github.com/scrooloose/syntastic/archive/${version}.tar.gz";
161− sha256 = "0h8vfs6icpfwc41qx6n6rc1m35haxp2gaswg9fhcki2w2ikp6knb";
126+ url = "http://www.vim.org/scripts/download_script.php?src_id=7218";
127+ name = "a.vim";
128+ sha256 = "1q22vfkv60sshp9yj3mmfc8azavgzz7rpmaf72iznzq4wccy6gac";
162129 };
130+ unpackPhase = ":";
131+ installPhase = ''
132+ mkdir -p $out/share/vim-plugins/vim-a
133+ cp ${src} $out/share/vim-plugins/vim-a/a.vim
134+ '';
163135 };
164136
165137 coffee-script = buildVimPlugin {
@@ -171,6 +143,20 @@ in rec
171143 };
172144 coffeeScript = coffee-script; # backwards compat, added 2014-10-18
173145
146+ colorsamplerpack = buildVimPlugin rec {
147+ version = "2012.10.28";
148+ name = "colorsamplerpack-${version}";
149+
150+ setSourceRoot = "sourceRoot=.";
151+ src = fetchurl {
152+ url = "http://www.vim.org/scripts/download_script.php?src_id=18915";
153+ name = "colorsamplerpack.zip";
154+ sha256 = "1wsrb3vpqn9fncnalfpvc8r92wk1mcskm4shb3s2h9x5dyihf2rd";
155+ };
156+
157+ buildInputs = [ unzip ];
158+ };
159+
174160 command-t = buildVimPlugin rec {
175161 version = "1.8";
176162 name = "command-t-${version}";
@@ -189,6 +175,29 @@ in rec
189175 };
190176 command_T = command-t; # backwards compat, added 2014-10-18
191177
178+ commentary = buildVimPlugin {
179+ name = "commentary-git-2014-06-14";
180+ src = fetchgit {
181+ url = "https://github.com/tpope/vim-commentary.git";
182+ rev = "8b4df6ca0ba9cd117d97a8fd26b44b2439d5e3f1";
183+ sha256 = "5496ed31706552957d4caa76669ecd04e9b2853cf7a7e40bd0164726b21fcca0";
184+ };
185+ };
186+
187+ ctrlp = buildVimPlugin rec {
188+ version = "1.79";
189+ name = "ctrlp-${version}";
190+
191+ setSourceRoot = "sourceRoot=.";
192+ src = fetchurl {
193+ url = "http://www.vim.org/scripts/download_script.php?src_id=19448";
194+ name = "ctrlp_180.zip";
195+ sha256 = "1x9im8g0g27mxc3c9k7v0jg5bb1dmnbjygmqif5bizab5g69n2mi";
196+ };
197+
198+ buildInputs = [ unzip ];
199+ };
200+
192201 eighties = buildVimPlugin rec {
193202 version = "1.0.4";
194203 name = "eighties-${version}";
@@ -205,6 +214,34 @@ in rec
205214 };
206215 };
207216
217+ extradite = buildVimPlugin {
218+ name = "extradite-git-2014-07-18";
219+ src = fetchgit {
220+ url = "https://github.com/int3/vim-extradite.git";
221+ rev = "af4f3a51b6b654d655121b93c0cd9d8fe9a0c85d";
222+ sha256 = "d1d29cfbc654134be383747f2cd6b14b7a87de75f997af6a041f14d7ef61ade6";
223+ };
224+ };
225+
226+ fugitive = buildVimPlugin {
227+ name = "fugitive-git-2014-07-27";
228+ src = fetchgit {
229+ url = "https://github.com/tpope/vim-fugitive.git";
230+ rev = "90ee6fb5d255d14d9f12f2469f92ee50149f5b44";
231+ sha256 = "0297512f7fee62af601a99a68617591ecb2e244475ff0d79ebee9c7e6eff2eaf";
232+ };
233+ };
234+
235+ ghcmod = buildVimPlugin {
236+ name = "ghcmod-git-2014-07-16";
237+ src = fetchgit {
238+ url = "https://github.com/eagletmt/ghcmod-vim.git";
239+ rev = "0c4e94281e57c475752e799adc261f7d5e4ab124";
240+ sha256 = "f6a085f7b8198747fae3fff0bc38e4d030e5c97aaeb84958fbf96fa658bbe862";
241+ };
242+ patches = [ (fetchurl { url = "https://github.com/eagletmt/ghcmod-vim/pull/57.diff"; md5 = "cafbb9f725afbba26b52b6c3344ee89a"; }) ];
243+ };
244+
208245 golang = buildVimPlugin {
209246 name = "golang-20131127";
210247 src = fetchgit {
@@ -221,6 +258,52 @@ in rec
221258 };
222259 };
223260
261+ gundo = buildVimPlugin {
262+ name = "gundo-git-2013-08-12";
263+ src = fetchgit {
264+ url = "https://github.com/vim-scripts/Gundo.git";
265+ rev = "f443470b96364c24a775629418a6b2562ec9173e";
266+ sha256 = "b7a949167e59c936d6eae0d23635b87491b2cd2f46a197683b171d30165a90f9";
267+ };
268+ };
269+
270+ haskellconceal = buildVimPlugin {
271+ name = "haskellconceal-git-2014-05-21";
272+ src = fetchgit {
273+ url = "https://github.com/begriffs/vim-haskellConceal.git";
274+ rev = "73a8d712d3342b2ffdc087b12924f1cf81053860";
275+ sha256 = "be60ca030e2d39e972a8c71c0ab3b75b893589d26d5dd78a20cd6779f1f5cfa8";
276+ };
277+ };
278+ haskellConceal = haskellconceal; # backwards compat, added 2014-10-18
279+
280+ hasksyn = buildVimPlugin {
281+ name = "hasksyn-git-2014-07-24";
282+ src = fetchgit {
283+ url = "https://github.com/travitch/hasksyn.git";
284+ rev = "175cd4605afa5d9b9c75758112c8159fd118c631";
285+ sha256 = "3488e38d1f45a9a3363da62c1c946591621151a0a9cdaedd22b3fe8f666bbdb9";
286+ };
287+ };
288+
289+ hdevtools = buildVimPlugin {
290+ name = "hdevtools-git-2012-12-29";
291+ src = fetchgit {
292+ url = "https://github.com/bitc/vim-hdevtools.git";
293+ rev = "474947c52ff9c93dd36f3c49de90bd9a78f0baa1";
294+ sha256 = "bf5f096b665c51ce611c6c1bfddc3267c4b2f94af84b04482b07272a6a5a92f3";
295+ };
296+ };
297+
298+ hoogle = buildVimPlugin {
299+ name = "hoogle-git-2013-11-26";
300+ src = fetchgit {
301+ url = "https://github.com/Twinside/vim-hoogle.git";
302+ rev = "81f28318b0d4174984c33df99db7752891c5c4e9";
303+ sha256 = "0f96f3badb6218cac87d0f7027ff032ecc74f08ad3ada542898278ce11cbd5a0";
304+ };
305+ };
306+
224307 ipython = buildVimPlugin {
225308 name = "ipython-2013-08-30";
226309 src = fetchurl {
@@ -237,176 +320,123 @@ in rec
237320 };
238321 };
239322
240− taglist = buildVimPlugin {
241− name = "taglist-4.6";
242− meta = with stdenv.lib; {
243− description = "Source code browser plugin";
244− homepage = "http://www.vim.org/scripts/script.php?script_id=273";
245− license = licenses.gpl3;
246− maintainers = with maintainers; [ lovek323 ];
247− platforms = platforms.unix;
248− };
249− src = fetchurl {
250− url = "http://www.vim.org/scripts/download_script.php?src_id=19574";
251− name = "taglist_46.zip";
252− sha256 = "18cbv462vwg7vip2p99qlahm99hswav96cj4ki227kyi05q2lkjj";
253− };
254− setSourceRoot = ''
255− export sourceRoot=taglist
256− mkdir taglist
257− mv doc taglist
258− mv plugin taglist
259− '';
260− buildInputs = [ unzip ];
323+ neco-ghc = buildVimPlugin {
324+ name = "neco-ghc-git-2014-08-09";
325+ src = fetchgit {
326+ url = "https://github.com/eagletmt/neco-ghc.git";
327+ rev = "0311f31b3acaccec5b651ae7089d627a3a49239b";
328+ sha256 = "302f29f54c56e9cee647745a8355aeafe323c4efe2f3593d5e4f586acc1c06a5";
329+ };
261330 };
331+ necoGhc = neco-ghc; # backwards compat, added 2014-10-18
262332
263− tagbar = buildVimPlugin rec {
264− version = "2.6.1";
265− name = "tagbar-${version}";
266−
267− meta = with stdenv.lib; {
268− description = "A vim plugin for browsing the tags of source code files";
269− homepage = https://github.com/majutsushi/tagbar;
270− license = licenses.gpl3;
271− maintainers = with maintainers; [ lovek323 ];
272− platforms = platforms.unix;
273− };
274−
275− src = fetchurl {
276− url = "https://github.com/majutsushi/tagbar/archive/v${version}.tar.gz";
277− sha256 = "c061a7e0a45a166f4558b31e6c47b9fd701f5fa1319527b65a268ea054dea5fb";
278− };
333+ nerdtree = buildVimPlugin {
334+ name = "nerdtree-git-2014-08-16";
335+ src = fetchgit {
336+ url = "https://github.com/scrooloose/nerdtree.git";
337+ rev = "4f1e6ecb057fc0bac189171c1430d71ef25f6bb1";
338+ sha256 = "67ff2e7b9a7f39e58e9e334b1b79343a4c11aae10a657ab4fece289d8fe59300";
339+ };
279340 };
280341
281− xdebug = buildVimPlugin {
282− name = "xdebug-2012-08-15";
283− src = fetchurl {
284− url = "https://github.com/joonty/vim-xdebug/archive/a4980fa65f7f159780593ee37c178281691ba2c4.tar.gz";
285− sha256 = "1348gzp0zhc2wifvs5vmf92m9y8ik8ldnvy7bawsxahy8hmhiksk";
286− };
287− postInstall = false;
342+ pathogen = buildVimPlugin {
343+ name = "pathogen-git-2014-07-20";
344+ src = fetchgit {
345+ url = "https://github.com/tpope/vim-pathogen.git";
346+ rev = "91e6378908721d20514bbe5d18d292a0a15faf0c";
347+ sha256 = "24c1897d6b58576b2189c90050a7f8ede72a51343c752e9d030e833dbe5cac6f";
348+ };
288349 };
289350
290− vimshell = buildVimPlugin rec {
291− version = "9.2";
292− name = "vimshell-${version}";
293−
294− meta = with stdenv.lib; {
295− description = "An extreme shell that doesn't depend on external shells and is written completely in Vim script";
296− homepage = https://github.com/Shougo/vimshell.vim;
297− repositories.git = https://github.com/Shougo/vimshell.vim.git;
298− license = licenses.gpl3;
299− maintainers = with maintainers; [ lovek323 ];
300− platforms = platforms.unix;
301− };
302−
303− src = fetchurl {
304− url = "https://github.com/Shougo/vimshell.vim/archive/ver.${version}.tar.gz";
305− sha256 = "1pbwxdhpv6pr09b6hwkgy7grpmpwlqpsgsawl38r40q6yib8zb4a";
306− };
307−
308− buildInputs = [ vimproc ];
309−
310− preBuild = ''
311− sed -ie '1 i\
312− set runtimepath+=${vimproc}/share/vim-plugins/vimproc\
313− ' autoload/vimshell.vim
314− '';
351+ stylish-haskell = buildVimPlugin {
352+ name = "stylish-haskell-git-2014-07-14";
353+ src = fetchgit {
354+ url = "https://github.com/nbouscal/vim-stylish-haskell.git";
355+ rev = "453fd203aee3d7305ea8e4088ff53bd1f5933d75";
356+ sha256 = "c0e5010e1e8e56b179ce500387afb569f051c45b37ce92feb4350f293df96a8c";
357+ };
315358 };
359+ stylishHaskell = stylish-haskell; # backwards compat, added 2014-10-18
316360
317− vimproc = buildVimPlugin rec {
318− version = "21a79bf4edca3ae97555df3fc729d208c7e19b9c";
319− name = "vimproc-${version}";
320−
321− meta = with stdenv.lib; {
322− description = "An asynchronous execution library for Vim";
323− homepage = https://github.com/Shougo/vimproc.vim;
324− repositories.git = https://github.com/Shougo/vimproc.vim.git;
325− license = licenses.gpl3;
326− maintainers = with maintainers; [ lovek323 ];
327− platforms = platforms.unix;
328− };
329−
361+ supertab = buildVimPlugin {
362+ name = "supertab-git-2014-08-07";
330363 src = fetchgit {
331− url = "https://github.com/Shougo/vimproc.vim.git";
332− rev = "${version}";
333− sha256 = "16mlrhmd1hq4rgg7bl9gajhb4nmn1x8jxfaxfwiy2bm1phgljgq0";
364+ url = "https://github.com/ervandew/supertab.git";
365+ rev = "23db558596d4a73e4afa8fbedcde23b95bf72251";
366+ sha256 = "21fa675969f4cfd2686ab3b63cba632fa55d62481e61d36193403bea9c02ebde";
334367 };
335−
336− buildInputs = [ which ];
337−
338− buildPhase = ''
339− sed -i 's/vimproc_mac\.so/vimproc_unix\.so/' autoload/vimproc.vim
340− make -f make_unix.mak
341− '';
368+ buildInputs = [ vim ];
342369 };
343370
344− colorsamplerpack = buildVimPlugin rec {
345− version = "2012.10.28";
346− name = "colorsamplerpack-${version}";
371+ syntastic = buildVimPlugin rec {
372+ version = "3.4.0";
373+ name = "syntastic-${version}";
347374
348− setSourceRoot = "sourceRoot=.";
349375 src = fetchurl {
350− url = "http://www.vim.org/scripts/download_script.php?src_id=18915";
351− name = "colorsamplerpack.zip";
352− sha256 = "1wsrb3vpqn9fncnalfpvc8r92wk1mcskm4shb3s2h9x5dyihf2rd";
376+ url = "https://github.com/scrooloose/syntastic/archive/${version}.tar.gz";
377+ sha256 = "0h8vfs6icpfwc41qx6n6rc1m35haxp2gaswg9fhcki2w2ikp6knb";
353378 };
379+ };
354380
355− buildInputs = [ unzip ];
381+ tabular = buildVimPlugin {
382+ name = "tabular-git-2013-05-17";
383+ src = fetchgit {
384+ url = "https://github.com/godlygeek/tabular.git";
385+ rev = "60f25648814f0695eeb6c1040d97adca93c4e0bb";
386+ sha256 = "28c860ad621587f2c3213fae47d1a3997746527c17d51e9ab94c209eb7bfeb0f";
387+ };
356388 };
357389
358− yankring = buildVimPlugin rec {
359− version = "18.0";
360− name = "yankring-${version}";
390+ tagbar = buildVimPlugin rec {
391+ version = "2.6.1";
392+ name = "tagbar-${version}";
361393
362− setSourceRoot = "sourceRoot=.";
363− src = fetchurl {
364− url = "http://www.vim.org/scripts/download_script.php?src_id=20842";
365− name = "yankring_180.zip";
366− sha256 = "0bsq4pxagy12jqxzs7gcf25k5ahwif13ayb9k8clyhm0jjdkf0la";
394+ meta = with stdenv.lib; {
395+ description = "A vim plugin for browsing the tags of source code files";
396+ homepage = https://github.com/majutsushi/tagbar;
397+ license = licenses.gpl3;
398+ maintainers = with maintainers; [ lovek323 ];
399+ platforms = platforms.unix;
367400 };
368401
369− buildInputs = [ unzip ];
370− };
371−
372− ctrlp = buildVimPlugin rec {
373− version = "1.79";
374− name = "ctrlp-${version}";
375−
376− setSourceRoot = "sourceRoot=.";
377402 src = fetchurl {
378− url = "http://www.vim.org/scripts/download_script.php?src_id=19448";
379− name = "ctrlp_180.zip";
380− sha256 = "1x9im8g0g27mxc3c9k7v0jg5bb1dmnbjygmqif5bizab5g69n2mi";
403+ url = "https://github.com/majutsushi/tagbar/archive/v${version}.tar.gz";
404+ sha256 = "c061a7e0a45a166f4558b31e6c47b9fd701f5fa1319527b65a268ea054dea5fb";
381405 };
382−
383− buildInputs = [ unzip ];
384406 };
385407
386− alternate = stdenv.mkDerivation rec {
387− version = "2.18";
388− name = "alternate-${version}";
389−
408+ taglist = buildVimPlugin {
409+ name = "taglist-4.6";
410+ meta = with stdenv.lib; {
411+ description = "Source code browser plugin";
412+ homepage = "http://www.vim.org/scripts/script.php?script_id=273";
413+ license = licenses.gpl3;
414+ maintainers = with maintainers; [ lovek323 ];
415+ platforms = platforms.unix;
416+ };
390417 src = fetchurl {
391− url = "http://www.vim.org/scripts/download_script.php?src_id=7218";
392− name = "a.vim";
393− sha256 = "1q22vfkv60sshp9yj3mmfc8azavgzz7rpmaf72iznzq4wccy6gac";
418+ url = "http://www.vim.org/scripts/download_script.php?src_id=19574";
419+ name = "taglist_46.zip";
420+ sha256 = "18cbv462vwg7vip2p99qlahm99hswav96cj4ki227kyi05q2lkjj";
394421 };
395− unpackPhase = ":";
396− installPhase = ''
397− mkdir -p $out/share/vim-plugins/vim-a
398− cp ${src} $out/share/vim-plugins/vim-a/a.vim
422+ setSourceRoot = ''
423+ export sourceRoot=taglist
424+ mkdir taglist
425+ mv doc taglist
426+ mv plugin taglist
399427 '';
428+ buildInputs = [ unzip ];
400429 };
401430
402− vundle = buildVimPlugin {
403− name = "vundle-git-2014-07-19";
431+ tmux-navigator = buildVimPlugin {
432+ name = "tmux-navigator-git-2014-07-22";
404433 src = fetchgit {
405− url = "https://github.com/gmarik/Vundle.vim.git";
406− rev = "0b28e334e65b6628b0a61c412fcb45204a2f2bab";
407− sha256 = "9681d471d1391626cb9ad22b2b469003d9980cd23c5c3a8d34666376447e6204";
434+ url = "https://github.com/christoomey/vim-tmux-navigator.git";
435+ rev = "3de98bfcee1289ce8edc6daf9a18f243180c7168";
436+ sha256 = "3843f92e0a21fe5ccf613f8a561abd06c822b2ee98bd82c98937548144e4e8df";
408437 };
409438 };
439+ tmuxNavigator = tmux-navigator; # backwards compat, added 2014-10-18
410440
411441 tslime = buildVimPlugin {
412442 name = "tslime-git-2014-06-12";
@@ -417,52 +447,6 @@ in rec
417447 };
418448 };
419449
420− supertab = buildVimPlugin {
421− name = "supertab-git-2014-08-07";
422− src = fetchgit {
423− url = "https://github.com/ervandew/supertab.git";
424− rev = "23db558596d4a73e4afa8fbedcde23b95bf72251";
425− sha256 = "21fa675969f4cfd2686ab3b63cba632fa55d62481e61d36193403bea9c02ebde";
426− };
427− buildInputs = [ vim ];
428− };
429−
430− fugitive = buildVimPlugin {
431− name = "fugitive-git-2014-07-27";
432− src = fetchgit {
433− url = "https://github.com/tpope/vim-fugitive.git";
434− rev = "90ee6fb5d255d14d9f12f2469f92ee50149f5b44";
435− sha256 = "0297512f7fee62af601a99a68617591ecb2e244475ff0d79ebee9c7e6eff2eaf";
436− };
437− };
438−
439− extradite = buildVimPlugin {
440− name = "extradite-git-2014-07-18";
441− src = fetchgit {
442− url = "https://github.com/int3/vim-extradite.git";
443− rev = "af4f3a51b6b654d655121b93c0cd9d8fe9a0c85d";
444− sha256 = "d1d29cfbc654134be383747f2cd6b14b7a87de75f997af6a041f14d7ef61ade6";
445− };
446− };
447−
448− nerdtree = buildVimPlugin {
449− name = "nerdtree-git-2014-08-16";
450− src = fetchgit {
451− url = "https://github.com/scrooloose/nerdtree.git";
452− rev = "4f1e6ecb057fc0bac189171c1430d71ef25f6bb1";
453− sha256 = "67ff2e7b9a7f39e58e9e334b1b79343a4c11aae10a657ab4fece289d8fe59300";
454− };
455− };
456−
457− airline = buildVimPlugin {
458− name = "airline-git-2014-08-02";
459− src = fetchgit {
460− url = "https://github.com/bling/vim-airline.git";
461− rev = "2114e7025188a941e5c63b1f942d576adb98d8a4";
462− sha256 = "b6fc4d0545f8b7e107c5f80b94cf536a2b1fdd55d9f2484a29a007911e96130f";
463− };
464− };
465−
466450 ultisnips = buildVimPlugin {
467451 name = "ultisnips-git-2014-08-02";
468452 src = fetchgit {
@@ -472,39 +456,66 @@ in rec
472456 };
473457 };
474458
475− align = buildVimPlugin {
476− name = "align-git-2012-08-08";
477− src = fetchgit {
478− url = "https://github.com/vim-scripts/Align.git";
479− rev = "787662fe90cd057942bc5b682fd70c87e1a9dd77";
480− sha256 = "f7b5764357370f03546556bd45558837f3790b0e86afadb63cd04d714a668a29";
481− };
482− };
459+ vimproc = buildVimPlugin rec {
460+ version = "21a79bf4edca3ae97555df3fc729d208c7e19b9c";
461+ name = "vimproc-${version}";
462+
463+ meta = with stdenv.lib; {
464+ description = "An asynchronous execution library for Vim";
465+ homepage = https://github.com/Shougo/vimproc.vim;
466+ repositories.git = https://github.com/Shougo/vimproc.vim.git;
467+ license = licenses.gpl3;
468+ maintainers = with maintainers; [ lovek323 ];
469+ platforms = platforms.unix;
470+ };
483471
484− gundo = buildVimPlugin {
485− name = "gundo-git-2013-08-12";
486472 src = fetchgit {
487− url = "https://github.com/vim-scripts/Gundo.git";
488− rev = "f443470b96364c24a775629418a6b2562ec9173e";
489− sha256 = "b7a949167e59c936d6eae0d23635b87491b2cd2f46a197683b171d30165a90f9";
473+ url = "https://github.com/Shougo/vimproc.vim.git";
474+ rev = "${version}";
475+ sha256 = "16mlrhmd1hq4rgg7bl9gajhb4nmn1x8jxfaxfwiy2bm1phgljgq0";
490476 };
477+
478+ buildInputs = [ which ];
479+
480+ buildPhase = ''
481+ sed -i 's/vimproc_mac\.so/vimproc_unix\.so/' autoload/vimproc.vim
482+ make -f make_unix.mak
483+ '';
491484 };
492485
493− commentary = buildVimPlugin {
494− name = "commentary-git-2014-06-14";
495− src = fetchgit {
496− url = "https://github.com/tpope/vim-commentary.git";
497− rev = "8b4df6ca0ba9cd117d97a8fd26b44b2439d5e3f1";
498− sha256 = "5496ed31706552957d4caa76669ecd04e9b2853cf7a7e40bd0164726b21fcca0";
499− };
486+ vimshell = buildVimPlugin rec {
487+ version = "9.2";
488+ name = "vimshell-${version}";
489+
490+ meta = with stdenv.lib; {
491+ description = "An extreme shell that doesn't depend on external shells and is written completely in Vim script";
492+ homepage = https://github.com/Shougo/vimshell.vim;
493+ repositories.git = https://github.com/Shougo/vimshell.vim.git;
494+ license = licenses.gpl3;
495+ maintainers = with maintainers; [ lovek323 ];
496+ platforms = platforms.unix;
497+ };
498+
499+ src = fetchurl {
500+ url = "https://github.com/Shougo/vimshell.vim/archive/ver.${version}.tar.gz";
501+ sha256 = "1pbwxdhpv6pr09b6hwkgy7grpmpwlqpsgsawl38r40q6yib8zb4a";
502+ };
503+
504+ buildInputs = [ vimproc ];
505+
506+ preBuild = ''
507+ sed -ie '1 i\
508+ set runtimepath+=${vimproc}/share/vim-plugins/vimproc\
509+ ' autoload/vimshell.vim
510+ '';
500511 };
501512
502− tabular = buildVimPlugin {
503− name = "tabular-git-2013-05-17";
513+ vimoutliner = buildVimPlugin {
514+ name = "vimoutliner-git-2014-09-20";
504515 src = fetchgit {
505− url = "https://github.com/godlygeek/tabular.git";
506− rev = "60f25648814f0695eeb6c1040d97adca93c4e0bb";
507− sha256 = "28c860ad621587f2c3213fae47d1a3997746527c17d51e9ab94c209eb7bfeb0f";
516+ url = "https://github.com/vimoutliner/vimoutliner";
517+ rev = "2fc82976683c8770bece157ae3ada55251b6ddeb";
518+ sha256 = "dce383e7842c42bcfa8e7c3329fa426cb0fb05786d40a733da705c03aabd196b";
508519 };
509520 };
510521
@@ -517,108 +528,96 @@ in rec
517528 };
518529 };
519530
520− hasksyn = buildVimPlugin {
521− name = "hasksyn-git-2014-07-24";
531+ vundle = buildVimPlugin {
532+ name = "vundle-git-2014-07-19";
522533 src = fetchgit {
523− url = "https://github.com/travitch/hasksyn.git";
524− rev = "175cd4605afa5d9b9c75758112c8159fd118c631";
525− sha256 = "3488e38d1f45a9a3363da62c1c946591621151a0a9cdaedd22b3fe8f666bbdb9";
534+ url = "https://github.com/gmarik/Vundle.vim.git";
535+ rev = "0b28e334e65b6628b0a61c412fcb45204a2f2bab";
536+ sha256 = "9681d471d1391626cb9ad22b2b469003d9980cd23c5c3a8d34666376447e6204";
526537 };
527538 };
528539
529− haskellconceal = buildVimPlugin {
530− name = "haskellconceal-git-2014-05-21";
540+ wombat256 = buildVimPlugin {
541+ name = "wombat256-git-2010-10-18";
531542 src = fetchgit {
532− url = "https://github.com/begriffs/vim-haskellConceal.git";
533− rev = "73a8d712d3342b2ffdc087b12924f1cf81053860";
534− sha256 = "be60ca030e2d39e972a8c71c0ab3b75b893589d26d5dd78a20cd6779f1f5cfa8";
543+ url = "https://github.com/vim-scripts/wombat256.vim.git";
544+ rev = "8734ba45dcf5e38c4d2686b35c94f9fcb30427e2";
545+ sha256 = "2feb7d57ab0a9f2ea44ccd606e540db64ab3285956398a50ecc562d7b8dbcd05";
535546 };
536547 };
537− haskellConceal = haskellconceal; # backwards compat, added 2014-10-18
538548
539− ghcmod = buildVimPlugin {
540− name = "ghcmod-git-2014-07-16";
541− src = fetchgit {
542− url = "https://github.com/eagletmt/ghcmod-vim.git";
543− rev = "0c4e94281e57c475752e799adc261f7d5e4ab124";
544− sha256 = "f6a085f7b8198747fae3fff0bc38e4d030e5c97aaeb84958fbf96fa658bbe862";
545− };
546− patches = [ (fetchurl { url = "https://github.com/eagletmt/ghcmod-vim/pull/57.diff"; md5 = "cafbb9f725afbba26b52b6c3344ee89a"; }) ];
547− };
548549
549− neco-ghc = buildVimPlugin {
550− name = "neco-ghc-git-2014-08-09";
551− src = fetchgit {
552− url = "https://github.com/eagletmt/neco-ghc.git";
553− rev = "0311f31b3acaccec5b651ae7089d627a3a49239b";
554− sha256 = "302f29f54c56e9cee647745a8355aeafe323c4efe2f3593d5e4f586acc1c06a5";
555− };
550+ xdebug = buildVimPlugin {
551+ name = "xdebug-2012-08-15";
552+ src = fetchurl {
553+ url = "https://github.com/joonty/vim-xdebug/archive/a4980fa65f7f159780593ee37c178281691ba2c4.tar.gz";
554+ sha256 = "1348gzp0zhc2wifvs5vmf92m9y8ik8ldnvy7bawsxahy8hmhiksk";
555+ };
556+ postInstall = false;
556557 };
557− necoGhc = neco-ghc; # backwards compat, added 2014-10-18
558558
559− hoogle = buildVimPlugin {
560− name = "hoogle-git-2013-11-26";
561− src = fetchgit {
562− url = "https://github.com/Twinside/vim-hoogle.git";
563− rev = "81f28318b0d4174984c33df99db7752891c5c4e9";
564− sha256 = "0f96f3badb6218cac87d0f7027ff032ecc74f08ad3ada542898278ce11cbd5a0";
565− };
566− };
559+ yankring = buildVimPlugin rec {
560+ version = "18.0";
561+ name = "yankring-${version}";
567562
568− hdevtools = buildVimPlugin {
569− name = "hdevtools-git-2012-12-29";
570− src = fetchgit {
571− url = "https://github.com/bitc/vim-hdevtools.git";
572− rev = "474947c52ff9c93dd36f3c49de90bd9a78f0baa1";
573− sha256 = "bf5f096b665c51ce611c6c1bfddc3267c4b2f94af84b04482b07272a6a5a92f3";
574− };
575− };
563+ setSourceRoot = "sourceRoot=.";
564+ src = fetchurl {
565+ url = "http://www.vim.org/scripts/download_script.php?src_id=20842";
566+ name = "yankring_180.zip";
567+ sha256 = "0bsq4pxagy12jqxzs7gcf25k5ahwif13ayb9k8clyhm0jjdkf0la";
568+ };
576569
577− stylish-haskell = buildVimPlugin {
578− name = "stylish-haskell-git-2014-07-14";
579− src = fetchgit {
580− url = "https://github.com/nbouscal/vim-stylish-haskell.git";
581− rev = "453fd203aee3d7305ea8e4088ff53bd1f5933d75";
582− sha256 = "c0e5010e1e8e56b179ce500387afb569f051c45b37ce92feb4350f293df96a8c";
583− };
570+ buildInputs = [ unzip ];
584571 };
585− stylishHaskell = stylish-haskell; # backwards compat, added 2014-10-18
586572
587− wombat256 = buildVimPlugin {
588− name = "wombat256-git-2010-10-18";
589− src = fetchgit {
590− url = "https://github.com/vim-scripts/wombat256.vim.git";
591− rev = "8734ba45dcf5e38c4d2686b35c94f9fcb30427e2";
592− sha256 = "2feb7d57ab0a9f2ea44ccd606e540db64ab3285956398a50ecc562d7b8dbcd05";
593− };
594− };
573+ vim-addon-nix = {
574+ # github.com/MarcWeber/vim-addon-nix provides some additional support for
575+ # editing .nix files
595576
596− tmux-navigator = buildVimPlugin {
597− name = "tmux-navigator-git-2014-07-22";
598− src = fetchgit {
599− url = "https://github.com/christoomey/vim-tmux-navigator.git";
600− rev = "3de98bfcee1289ce8edc6daf9a18f243180c7168";
601− sha256 = "3843f92e0a21fe5ccf613f8a561abd06c822b2ee98bd82c98937548144e4e8df";
602− };
577+ # This is a placeholder, because I think you always should be using latest
578+ # git version. It also depends on some additional plugins (see addon-info.json)
603579 };
604− tmuxNavigator = tmux-navigator; # backwards compat, added 2014-10-18
605580
606− pathogen = buildVimPlugin {
607− name = "pathogen-git-2014-07-20";
581+ youcompleteme = stdenv.mkDerivation {
608582 src = fetchgit {
609− url = "https://github.com/tpope/vim-pathogen.git";
610− rev = "91e6378908721d20514bbe5d18d292a0a15faf0c";
611− sha256 = "24c1897d6b58576b2189c90050a7f8ede72a51343c752e9d030e833dbe5cac6f";
612− };
613− };
583+ url = "https://github.com/Valloric/YouCompleteMe.git";
584+ rev = "a2cae90f7ba1746bf1209edd6739f87d5914b375";
585+ sha256 = "1yxrxskxnr2da5awm59ra4s9wg67rimcbazvln9bayg9saxs540d";
586+ };
614587
615− vimoutliner = buildVimPlugin {
616− name = "vimoutliner-git-2014-09-20";
617− src = fetchgit {
618− url = "https://github.com/vimoutliner/vimoutliner";
619− rev = "2fc82976683c8770bece157ae3ada55251b6ddeb";
620− sha256 = "dce383e7842c42bcfa8e7c3329fa426cb0fb05786d40a733da705c03aabd196b";
621− };
622− };
588+ name = "vimplugin-youcompleteme-20140929"; # commit date
589+ buildInputs = [ python cmake clang.clang ];
623590
591+ configurePhase = ":";
592+
593+ buildPhase = ''
594+ patchShebangs .
595+
596+ target=$out/share/vim-plugins/youcompleteme
597+ mkdir -p $target
598+ cp -a ./ $target
599+
600+ mkdir $target/build
601+ cd $target/build
602+ cmake -G "Unix Makefiles" . $target/third_party/ycmd/cpp -DPYTHON_LIBRARIES:PATH=${python}/lib/libpython2.7.so -DPYTHON_INCLUDE_DIR:PATH=${python}/include/python2.7 -DUSE_CLANG_COMPLETER=ON -DUSE_SYSTEM_LIBCLANG=ON
603+ make ycm_support_libs -j''${NIX_BUILD_CORES} -l''${NIX_BUILD_CORES}}
604+ ${bash}/bin/bash $target/install.sh --clang-completer --system-libclang
605+
606+ ${vimHelpTags}
607+ vimHelpTags $target
608+ '';
609+
610+ # TODO: implement proper install phase rather than keeping everything in store
611+ # TODO: support llvm based C completion, See README of git repository
612+ installPhase = ":";
613+
614+ meta = {
615+ description = "fastest non utf-8 aware word and C completion engine for Vim";
616+ homepage = http://github.com/Valloric/YouCompleteMe;
617+ license = stdenv.lib.licenses.gpl3;
618+ maintainers = [stdenv.lib.maintainers.marcweber];
619+ platforms = stdenv.lib.platforms.linux;
620+ };
621+ };
622+ YouCompleteMe = youcompleteme; # backwards compat, added 2014-10-18
624623}