git.iko.soy/typeable/nixpkgs
on master help sign in
vim-plugins: sort alphabetically
796e671Bjørn Forsman
pkgs/misc/vim-plugins/default.nix+341−342
@@ -100,66 +100,38 @@ let vimHelpTags = ''
100in rec
100in rec
101
101
102{
102{
103−
103+ airline = buildVimPlugin {
104− vim-addon-nix = {
104+ name = "airline-git-2014-08-02";
105− # github.com/MarcWeber/vim-addon-nix provides some additional support for
105+ src = fetchgit {
106− # editing .nix files
106+ url = "https://github.com/bling/vim-airline.git";
107−
107+ rev = "2114e7025188a941e5c63b1f942d576adb98d8a4";
108− # This is a placeholder, because I think you always should be using latest
108+ sha256 = "b6fc4d0545f8b7e107c5f80b94cf536a2b1fdd55d9f2484a29a007911e96130f";
109− # git version. It also depends on some additional plugins (see addon-info.json)
109+ };
110 };
110 };
111
111
112− youcompleteme = stdenv.mkDerivation {
112+ align = buildVimPlugin {
113+ name = "align-git-2012-08-08";
113 src = fetchgit {
114 src = fetchgit {
114− url = "https://github.com/Valloric/YouCompleteMe.git";
115+ url = "https://github.com/vim-scripts/Align.git";
115− rev = "a2cae90f7ba1746bf1209edd6739f87d5914b375";
116+ rev = "787662fe90cd057942bc5b682fd70c87e1a9dd77";
116− sha256 = "1yxrxskxnr2da5awm59ra4s9wg67rimcbazvln9bayg9saxs540d";
117+ sha256 = "f7b5764357370f03546556bd45558837f3790b0e86afadb63cd04d714a668a29";
117 };
118 };
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− };
152 };
119 };
153− YouCompleteMe = youcompleteme; # backwards compat, added 2014-10-18
154
120
155− syntastic = buildVimPlugin rec {
121+ alternate = stdenv.mkDerivation rec {
156− version = "3.4.0";
122+ version = "2.18";
157− name = "syntastic-${version}";
123+ name = "alternate-${version}";
158
124
159 src = fetchurl {
125 src = fetchurl {
160− url = "https://github.com/scrooloose/syntastic/archive/${version}.tar.gz";
126+ url = "http://www.vim.org/scripts/download_script.php?src_id=7218";
161− sha256 = "0h8vfs6icpfwc41qx6n6rc1m35haxp2gaswg9fhcki2w2ikp6knb";
127+ name = "a.vim";
128+ sha256 = "1q22vfkv60sshp9yj3mmfc8azavgzz7rpmaf72iznzq4wccy6gac";
162 };
129 };
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+ '';
163 };
135 };
164
136
165 coffee-script = buildVimPlugin {
137 coffee-script = buildVimPlugin {
@@ -171,6 +143,20 @@ in rec
171 };
143 };
172 coffeeScript = coffee-script; # backwards compat, added 2014-10-18
144 coffeeScript = coffee-script; # backwards compat, added 2014-10-18
173
145
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+
174 command-t = buildVimPlugin rec {
160 command-t = buildVimPlugin rec {
175 version = "1.8";
161 version = "1.8";
176 name = "command-t-${version}";
162 name = "command-t-${version}";
@@ -189,6 +175,29 @@ in rec
189 };
175 };
190 command_T = command-t; # backwards compat, added 2014-10-18
176 command_T = command-t; # backwards compat, added 2014-10-18
191
177
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+
192 eighties = buildVimPlugin rec {
201 eighties = buildVimPlugin rec {
193 version = "1.0.4";
202 version = "1.0.4";
194 name = "eighties-${version}";
203 name = "eighties-${version}";
@@ -205,6 +214,34 @@ in rec
205 };
214 };
206 };
215 };
207
216
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+
208 golang = buildVimPlugin {
245 golang = buildVimPlugin {
209 name = "golang-20131127";
246 name = "golang-20131127";
210 src = fetchgit {
247 src = fetchgit {
@@ -221,6 +258,52 @@ in rec
221 };
258 };
222 };
259 };
223
260
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+
224 ipython = buildVimPlugin {
307 ipython = buildVimPlugin {
225 name = "ipython-2013-08-30";
308 name = "ipython-2013-08-30";
226 src = fetchurl {
309 src = fetchurl {
@@ -237,176 +320,123 @@ in rec
237 };
320 };
238 };
321 };
239
322
240− taglist = buildVimPlugin {
323+ neco-ghc = buildVimPlugin {
241− name = "taglist-4.6";
324+ name = "neco-ghc-git-2014-08-09";
242− meta = with stdenv.lib; {
325+ src = fetchgit {
243− description = "Source code browser plugin";
326+ url = "https://github.com/eagletmt/neco-ghc.git";
244− homepage = "http://www.vim.org/scripts/script.php?script_id=273";
327+ rev = "0311f31b3acaccec5b651ae7089d627a3a49239b";
245− license = licenses.gpl3;
328+ sha256 = "302f29f54c56e9cee647745a8355aeafe323c4efe2f3593d5e4f586acc1c06a5";
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− };
329+ };
254− setSourceRoot = ''
255− export sourceRoot=taglist
256− mkdir taglist
257− mv doc taglist
258− mv plugin taglist
259− '';
260− buildInputs = [ unzip ];
261 };
330 };
331+ necoGhc = neco-ghc; # backwards compat, added 2014-10-18
262
332
263− tagbar = buildVimPlugin rec {
333+ nerdtree = buildVimPlugin {
264− version = "2.6.1";
334+ name = "nerdtree-git-2014-08-16";
265− name = "tagbar-${version}";
335+ src = fetchgit {
266−
336+ url = "https://github.com/scrooloose/nerdtree.git";
267− meta = with stdenv.lib; {
337+ rev = "4f1e6ecb057fc0bac189171c1430d71ef25f6bb1";
268− description = "A vim plugin for browsing the tags of source code files";
338+ sha256 = "67ff2e7b9a7f39e58e9e334b1b79343a4c11aae10a657ab4fece289d8fe59300";
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− };
339+ };
279 };
340 };
280
341
281− xdebug = buildVimPlugin {
342+ pathogen = buildVimPlugin {
282− name = "xdebug-2012-08-15";
343+ name = "pathogen-git-2014-07-20";
283− src = fetchurl {
344+ src = fetchgit {
284− url = "https://github.com/joonty/vim-xdebug/archive/a4980fa65f7f159780593ee37c178281691ba2c4.tar.gz";
345+ url = "https://github.com/tpope/vim-pathogen.git";
285− sha256 = "1348gzp0zhc2wifvs5vmf92m9y8ik8ldnvy7bawsxahy8hmhiksk";
346+ rev = "91e6378908721d20514bbe5d18d292a0a15faf0c";
347+ sha256 = "24c1897d6b58576b2189c90050a7f8ede72a51343c752e9d030e833dbe5cac6f";
286− };
348+ };
287− postInstall = false;
288 };
349 };
289
350
290− vimshell = buildVimPlugin rec {
351+ stylish-haskell = buildVimPlugin {
291− version = "9.2";
352+ name = "stylish-haskell-git-2014-07-14";
292− name = "vimshell-${version}";
353+ src = fetchgit {
293−
354+ url = "https://github.com/nbouscal/vim-stylish-haskell.git";
294− meta = with stdenv.lib; {
355+ rev = "453fd203aee3d7305ea8e4088ff53bd1f5933d75";
295− description = "An extreme shell that doesn't depend on external shells and is written completely in Vim script";
356+ sha256 = "c0e5010e1e8e56b179ce500387afb569f051c45b37ce92feb4350f293df96a8c";
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− '';
357+ };
315 };
358 };
359+ stylishHaskell = stylish-haskell; # backwards compat, added 2014-10-18
316
360
317− vimproc = buildVimPlugin rec {
361+ supertab = buildVimPlugin {
318− version = "21a79bf4edca3ae97555df3fc729d208c7e19b9c";
362+ name = "supertab-git-2014-08-07";
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−
330 src = fetchgit {
363 src = fetchgit {
331− url = "https://github.com/Shougo/vimproc.vim.git";
364+ url = "https://github.com/ervandew/supertab.git";
332− rev = "${version}";
365+ rev = "23db558596d4a73e4afa8fbedcde23b95bf72251";
333− sha256 = "16mlrhmd1hq4rgg7bl9gajhb4nmn1x8jxfaxfwiy2bm1phgljgq0";
366+ sha256 = "21fa675969f4cfd2686ab3b63cba632fa55d62481e61d36193403bea9c02ebde";
334 };
367 };
335−
336− buildInputs = [ which ];
368+ buildInputs = [ vim ];
337−
338− buildPhase = ''
339− sed -i 's/vimproc_mac\.so/vimproc_unix\.so/' autoload/vimproc.vim
340− make -f make_unix.mak
341− '';
342 };
369 };
343
370
344− colorsamplerpack = buildVimPlugin rec {
371+ syntastic = buildVimPlugin rec {
345− version = "2012.10.28";
372+ version = "3.4.0";
346− name = "colorsamplerpack-${version}";
373+ name = "syntastic-${version}";
347
374
348− setSourceRoot = "sourceRoot=.";
349 src = fetchurl {
375 src = fetchurl {
350− url = "http://www.vim.org/scripts/download_script.php?src_id=18915";
376+ url = "https://github.com/scrooloose/syntastic/archive/${version}.tar.gz";
351− name = "colorsamplerpack.zip";
377+ sha256 = "0h8vfs6icpfwc41qx6n6rc1m35haxp2gaswg9fhcki2w2ikp6knb";
352− sha256 = "1wsrb3vpqn9fncnalfpvc8r92wk1mcskm4shb3s2h9x5dyihf2rd";
353 };
378 };
379+ };
354
380
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+ };
356 };
388 };
357
389
358− yankring = buildVimPlugin rec {
390+ tagbar = buildVimPlugin rec {
359− version = "18.0";
391+ version = "2.6.1";
360− name = "yankring-${version}";
392+ name = "tagbar-${version}";
361
393
362− setSourceRoot = "sourceRoot=.";
394+ meta = with stdenv.lib; {
363− src = fetchurl {
395+ description = "A vim plugin for browsing the tags of source code files";
364− url = "http://www.vim.org/scripts/download_script.php?src_id=20842";
396+ homepage = https://github.com/majutsushi/tagbar;
365− name = "yankring_180.zip";
397+ license = licenses.gpl3;
366− sha256 = "0bsq4pxagy12jqxzs7gcf25k5ahwif13ayb9k8clyhm0jjdkf0la";
398+ maintainers = with maintainers; [ lovek323 ];
399+ platforms = platforms.unix;
367 };
400 };
368
401
369− buildInputs = [ unzip ];
370− };
371−
372− ctrlp = buildVimPlugin rec {
373− version = "1.79";
374− name = "ctrlp-${version}";
375−
376− setSourceRoot = "sourceRoot=.";
377 src = fetchurl {
402 src = fetchurl {
378− url = "http://www.vim.org/scripts/download_script.php?src_id=19448";
403+ url = "https://github.com/majutsushi/tagbar/archive/v${version}.tar.gz";
379− name = "ctrlp_180.zip";
404+ sha256 = "c061a7e0a45a166f4558b31e6c47b9fd701f5fa1319527b65a268ea054dea5fb";
380− sha256 = "1x9im8g0g27mxc3c9k7v0jg5bb1dmnbjygmqif5bizab5g69n2mi";
381 };
405 };
382−
383− buildInputs = [ unzip ];
384 };
406 };
385
407
386− alternate = stdenv.mkDerivation rec {
408+ taglist = buildVimPlugin {
387− version = "2.18";
409+ name = "taglist-4.6";
388− name = "alternate-${version}";
410+ meta = with stdenv.lib; {
389−
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+ };
390 src = fetchurl {
417 src = fetchurl {
391− url = "http://www.vim.org/scripts/download_script.php?src_id=7218";
418+ url = "http://www.vim.org/scripts/download_script.php?src_id=19574";
392− name = "a.vim";
419+ name = "taglist_46.zip";
393− sha256 = "1q22vfkv60sshp9yj3mmfc8azavgzz7rpmaf72iznzq4wccy6gac";
420+ sha256 = "18cbv462vwg7vip2p99qlahm99hswav96cj4ki227kyi05q2lkjj";
394 };
421 };
395− unpackPhase = ":";
422+ setSourceRoot = ''
396− installPhase = ''
423+ export sourceRoot=taglist
397− mkdir -p $out/share/vim-plugins/vim-a
424+ mkdir taglist
398− cp ${src} $out/share/vim-plugins/vim-a/a.vim
425+ mv doc taglist
426+ mv plugin taglist
399 '';
427 '';
428+ buildInputs = [ unzip ];
400 };
429 };
401
430
402− vundle = buildVimPlugin {
431+ tmux-navigator = buildVimPlugin {
403− name = "vundle-git-2014-07-19";
432+ name = "tmux-navigator-git-2014-07-22";
404 src = fetchgit {
433 src = fetchgit {
405− url = "https://github.com/gmarik/Vundle.vim.git";
434+ url = "https://github.com/christoomey/vim-tmux-navigator.git";
406− rev = "0b28e334e65b6628b0a61c412fcb45204a2f2bab";
435+ rev = "3de98bfcee1289ce8edc6daf9a18f243180c7168";
407− sha256 = "9681d471d1391626cb9ad22b2b469003d9980cd23c5c3a8d34666376447e6204";
436+ sha256 = "3843f92e0a21fe5ccf613f8a561abd06c822b2ee98bd82c98937548144e4e8df";
408 };
437 };
409 };
438 };
439+ tmuxNavigator = tmux-navigator; # backwards compat, added 2014-10-18
410
440
411 tslime = buildVimPlugin {
441 tslime = buildVimPlugin {
412 name = "tslime-git-2014-06-12";
442 name = "tslime-git-2014-06-12";
@@ -417,52 +447,6 @@ in rec
417 };
447 };
418 };
448 };
419
449
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−
466 ultisnips = buildVimPlugin {
450 ultisnips = buildVimPlugin {
467 name = "ultisnips-git-2014-08-02";
451 name = "ultisnips-git-2014-08-02";
468 src = fetchgit {
452 src = fetchgit {
@@ -472,39 +456,66 @@ in rec
472 };
456 };
473 };
457 };
474
458
475− align = buildVimPlugin {
459+ vimproc = buildVimPlugin rec {
476− name = "align-git-2012-08-08";
460+ version = "21a79bf4edca3ae97555df3fc729d208c7e19b9c";
477− src = fetchgit {
461+ name = "vimproc-${version}";
478− url = "https://github.com/vim-scripts/Align.git";
462+
479− rev = "787662fe90cd057942bc5b682fd70c87e1a9dd77";
463+ meta = with stdenv.lib; {
480− sha256 = "f7b5764357370f03546556bd45558837f3790b0e86afadb63cd04d714a668a29";
464+ description = "An asynchronous execution library for Vim";
481− };
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;
482− };
470+ };
483
471
484− gundo = buildVimPlugin {
485− name = "gundo-git-2013-08-12";
486 src = fetchgit {
472 src = fetchgit {
487− url = "https://github.com/vim-scripts/Gundo.git";
473+ url = "https://github.com/Shougo/vimproc.vim.git";
488− rev = "f443470b96364c24a775629418a6b2562ec9173e";
474+ rev = "${version}";
489− sha256 = "b7a949167e59c936d6eae0d23635b87491b2cd2f46a197683b171d30165a90f9";
475+ sha256 = "16mlrhmd1hq4rgg7bl9gajhb4nmn1x8jxfaxfwiy2bm1phgljgq0";
490 };
476 };
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+ '';
491 };
484 };
492
485
493− commentary = buildVimPlugin {
486+ vimshell = buildVimPlugin rec {
494− name = "commentary-git-2014-06-14";
487+ version = "9.2";
495− src = fetchgit {
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 {
496− url = "https://github.com/tpope/vim-commentary.git";
500+ url = "https://github.com/Shougo/vimshell.vim/archive/ver.${version}.tar.gz";
497− rev = "8b4df6ca0ba9cd117d97a8fd26b44b2439d5e3f1";
501+ sha256 = "1pbwxdhpv6pr09b6hwkgy7grpmpwlqpsgsawl38r40q6yib8zb4a";
498− sha256 = "5496ed31706552957d4caa76669ecd04e9b2853cf7a7e40bd0164726b21fcca0";
499− };
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+ '';
500 };
511 };
501
512
502− tabular = buildVimPlugin {
513+ vimoutliner = buildVimPlugin {
503− name = "tabular-git-2013-05-17";
514+ name = "vimoutliner-git-2014-09-20";
504 src = fetchgit {
515 src = fetchgit {
505− url = "https://github.com/godlygeek/tabular.git";
516+ url = "https://github.com/vimoutliner/vimoutliner";
506− rev = "60f25648814f0695eeb6c1040d97adca93c4e0bb";
517+ rev = "2fc82976683c8770bece157ae3ada55251b6ddeb";
507− sha256 = "28c860ad621587f2c3213fae47d1a3997746527c17d51e9ab94c209eb7bfeb0f";
518+ sha256 = "dce383e7842c42bcfa8e7c3329fa426cb0fb05786d40a733da705c03aabd196b";
508 };
519 };
509 };
520 };
510
521
@@ -517,108 +528,96 @@ in rec
517 };
528 };
518 };
529 };
519
530
520− hasksyn = buildVimPlugin {
531+ vundle = buildVimPlugin {
521− name = "hasksyn-git-2014-07-24";
532+ name = "vundle-git-2014-07-19";
522 src = fetchgit {
533 src = fetchgit {
523− url = "https://github.com/travitch/hasksyn.git";
534+ url = "https://github.com/gmarik/Vundle.vim.git";
524− rev = "175cd4605afa5d9b9c75758112c8159fd118c631";
535+ rev = "0b28e334e65b6628b0a61c412fcb45204a2f2bab";
525− sha256 = "3488e38d1f45a9a3363da62c1c946591621151a0a9cdaedd22b3fe8f666bbdb9";
536+ sha256 = "9681d471d1391626cb9ad22b2b469003d9980cd23c5c3a8d34666376447e6204";
526 };
537 };
527 };
538 };
528
539
529− haskellconceal = buildVimPlugin {
540+ wombat256 = buildVimPlugin {
530− name = "haskellconceal-git-2014-05-21";
541+ name = "wombat256-git-2010-10-18";
531 src = fetchgit {
542 src = fetchgit {
532− url = "https://github.com/begriffs/vim-haskellConceal.git";
543+ url = "https://github.com/vim-scripts/wombat256.vim.git";
533− rev = "73a8d712d3342b2ffdc087b12924f1cf81053860";
544+ rev = "8734ba45dcf5e38c4d2686b35c94f9fcb30427e2";
534− sha256 = "be60ca030e2d39e972a8c71c0ab3b75b893589d26d5dd78a20cd6779f1f5cfa8";
545+ sha256 = "2feb7d57ab0a9f2ea44ccd606e540db64ab3285956398a50ecc562d7b8dbcd05";
535 };
546 };
536 };
547 };
537− haskellConceal = haskellconceal; # backwards compat, added 2014-10-18
538
548
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− };
548
549
549− neco-ghc = buildVimPlugin {
550+ xdebug = buildVimPlugin {
550− name = "neco-ghc-git-2014-08-09";
551+ name = "xdebug-2012-08-15";
551− src = fetchgit {
552+ src = fetchurl {
552− url = "https://github.com/eagletmt/neco-ghc.git";
553+ url = "https://github.com/joonty/vim-xdebug/archive/a4980fa65f7f159780593ee37c178281691ba2c4.tar.gz";
553− rev = "0311f31b3acaccec5b651ae7089d627a3a49239b";
554+ sha256 = "1348gzp0zhc2wifvs5vmf92m9y8ik8ldnvy7bawsxahy8hmhiksk";
554− sha256 = "302f29f54c56e9cee647745a8355aeafe323c4efe2f3593d5e4f586acc1c06a5";
555− };
555+ };
556+ postInstall = false;
556 };
557 };
557− necoGhc = neco-ghc; # backwards compat, added 2014-10-18
558
558
559− hoogle = buildVimPlugin {
559+ yankring = buildVimPlugin rec {
560− name = "hoogle-git-2013-11-26";
560+ version = "18.0";
561− src = fetchgit {
561+ name = "yankring-${version}";
562− url = "https://github.com/Twinside/vim-hoogle.git";
563− rev = "81f28318b0d4174984c33df99db7752891c5c4e9";
564− sha256 = "0f96f3badb6218cac87d0f7027ff032ecc74f08ad3ada542898278ce11cbd5a0";
565− };
566− };
567
562
568− hdevtools = buildVimPlugin {
563+ setSourceRoot = "sourceRoot=.";
569− name = "hdevtools-git-2012-12-29";
564+ src = fetchurl {
570− src = fetchgit {
565+ url = "http://www.vim.org/scripts/download_script.php?src_id=20842";
571− url = "https://github.com/bitc/vim-hdevtools.git";
566+ name = "yankring_180.zip";
572− rev = "474947c52ff9c93dd36f3c49de90bd9a78f0baa1";
567+ sha256 = "0bsq4pxagy12jqxzs7gcf25k5ahwif13ayb9k8clyhm0jjdkf0la";
573− sha256 = "bf5f096b665c51ce611c6c1bfddc3267c4b2f94af84b04482b07272a6a5a92f3";
574− };
575− };
568+ };
576
569
577− stylish-haskell = buildVimPlugin {
570+ buildInputs = [ unzip ];
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− };
584 };
571 };
585− stylishHaskell = stylish-haskell; # backwards compat, added 2014-10-18
586
572
587− wombat256 = buildVimPlugin {
573+ vim-addon-nix = {
588− name = "wombat256-git-2010-10-18";
574+ # github.com/MarcWeber/vim-addon-nix provides some additional support for
589− src = fetchgit {
575+ # editing .nix files
590− url = "https://github.com/vim-scripts/wombat256.vim.git";
591− rev = "8734ba45dcf5e38c4d2686b35c94f9fcb30427e2";
592− sha256 = "2feb7d57ab0a9f2ea44ccd606e540db64ab3285956398a50ecc562d7b8dbcd05";
593− };
594− };
595
576
596− tmux-navigator = buildVimPlugin {
577+ # This is a placeholder, because I think you always should be using latest
597− name = "tmux-navigator-git-2014-07-22";
578+ # git version. It also depends on some additional plugins (see addon-info.json)
598− src = fetchgit {
599− url = "https://github.com/christoomey/vim-tmux-navigator.git";
600− rev = "3de98bfcee1289ce8edc6daf9a18f243180c7168";
601− sha256 = "3843f92e0a21fe5ccf613f8a561abd06c822b2ee98bd82c98937548144e4e8df";
602− };
603 };
579 };
604− tmuxNavigator = tmux-navigator; # backwards compat, added 2014-10-18
605
580
606− pathogen = buildVimPlugin {
581+ youcompleteme = stdenv.mkDerivation {
607− name = "pathogen-git-2014-07-20";
608 src = fetchgit {
582 src = fetchgit {
609− url = "https://github.com/tpope/vim-pathogen.git";
583+ url = "https://github.com/Valloric/YouCompleteMe.git";
610− rev = "91e6378908721d20514bbe5d18d292a0a15faf0c";
584+ rev = "a2cae90f7ba1746bf1209edd6739f87d5914b375";
611− sha256 = "24c1897d6b58576b2189c90050a7f8ede72a51343c752e9d030e833dbe5cac6f";
585+ sha256 = "1yxrxskxnr2da5awm59ra4s9wg67rimcbazvln9bayg9saxs540d";
612− };
613− };
586+ };
614
587
615− vimoutliner = buildVimPlugin {
588+ name = "vimplugin-youcompleteme-20140929"; # commit date
616− name = "vimoutliner-git-2014-09-20";
589+ buildInputs = [ python cmake clang.clang ];
617− src = fetchgit {
618− url = "https://github.com/vimoutliner/vimoutliner";
619− rev = "2fc82976683c8770bece157ae3ada55251b6ddeb";
620− sha256 = "dce383e7842c42bcfa8e7c3329fa426cb0fb05786d40a733da705c03aabd196b";
621− };
622− };
623
590
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
624}
623}