@@ -83,12 +83,12 @@ let vimHelpTags = ''
8383 }
8484 '';
8585
86− buildVimPlugin = a@{name, namePrefix ? "vimplugin-", src, path, buildPhase ? "", ...}: stdenv.mkDerivation (a // {
86+ buildVimPlugin = a@{name, namePrefix ? "vimplugin-", src, buildPhase ? "", ...}: stdenv.mkDerivation (a // {
8787 name = namePrefix + name;
8888
8989 inherit buildPhase;
9090
91− installPhase = ''
91+ installPhase = let path = (builtins.parseDrvName name).name; in ''
9292 target=$out/share/vim-plugins/${path}
9393 mkdir -p $out/share/vim-plugins
9494 cp -r . $target
@@ -142,8 +142,6 @@ in rec
142142 # TODO: support llvm based C completion, See README of git repository
143143 installPhase = ":";
144144
145− path = "YouCompleteMe";
146−
147145 meta = {
148146 description = "fastest non utf-8 aware word and C completion engine for Vim";
149147 homepage = http://github.com/Valloric/YouCompleteMe;
@@ -161,8 +159,6 @@ in rec
161159 url = "https://github.com/scrooloose/syntastic/archive/${version}.tar.gz";
162160 sha256 = "0h8vfs6icpfwc41qx6n6rc1m35haxp2gaswg9fhcki2w2ikp6knb";
163161 };
164−
165− path = "syntastic";
166162 };
167163
168164 coffeeScript = buildVimPlugin {
@@ -171,7 +167,6 @@ in rec
171167 url = "https://github.com/vim-scripts/vim-coffee-script/archive/v002.tar.gz";
172168 sha256 = "1xln6i6jbbihcyp5bsdylr2146y41hmp2xf7wi001g2ymj1zdsc0";
173169 };
174− path = "vim-coffee-script";
175170 };
176171
177172 command_T = buildVimPlugin rec {
@@ -181,7 +176,6 @@ in rec
181176 url = "https://github.com/wincent/Command-T/archive/${version}.tar.gz";
182177 sha256 = "ad8664292e6eee40fbe195d856d20d93a8630e8c0149317ad72cc39423630800";
183178 };
184− path = "Command-T";
185179 buildInputs = [ perl ruby ];
186180 buildPhase = ''
187181 pushd ruby/command-t
@@ -198,7 +192,6 @@ in rec
198192 url = "https://github.com/justincampbell/vim-eighties/archive/${version}.tar.gz";
199193 sha256 = "0cjd9hbg2qd7jjkvyi15f9ysp7m3aa2sg8nvbf80yb890rfkwaqr";
200194 };
201− path = "eighties";
202195 meta = with stdenv.lib; {
203196 description = "Automatically resizes your windows to 80 characters";
204197 homepage = https://github.com/justincampbell/vim-eighties;
@@ -215,7 +208,6 @@ in rec
215208 rev = "832d64e5a813511ed52217aa24f0255c49671bab";
216209 sha256 = "6858eb674be132477c5dc7f7d3cbe550371f90d1aba480547a614965412a7b3c";
217210 };
218− path = "golang";
219211 meta = with stdenv.lib; {
220212 description = "Vim plugins for Go";
221213 homepage = https://github.com/jnwhiteh/vim-golang;
@@ -231,7 +223,6 @@ in rec
231223 url = "https://github.com/ivanov/vim-ipython/archive/ff8f88f3fe518851a91dc88aaa5a75f8f352a960.tar.gz";
232224 sha256 = "0hlx526dm8amrvh41kwnmgvvdzs6sh5yc5sfq4nk1zjkfcp1ah5j";
233225 };
234− path = "ipython";
235226 meta = with stdenv.lib; {
236227 description = "A two-way integration between vim and iPython";
237228 homepage = https://github.com/ivanov/vim-ipython;
@@ -263,7 +254,6 @@ in rec
263254 mv plugin taglist
264255 '';
265256 buildInputs = [ unzip ];
266− path = "taglist";
267257 };
268258
269259 tagbar = buildVimPlugin rec {
@@ -282,8 +272,6 @@ in rec
282272 url = "https://github.com/majutsushi/tagbar/archive/v${version}.tar.gz";
283273 sha256 = "c061a7e0a45a166f4558b31e6c47b9fd701f5fa1319527b65a268ea054dea5fb";
284274 };
285−
286− path = "tagbar";
287275 };
288276
289277 xdebug = buildVimPlugin {
@@ -292,7 +280,6 @@ in rec
292280 url = "https://github.com/joonty/vim-xdebug/archive/a4980fa65f7f159780593ee37c178281691ba2c4.tar.gz";
293281 sha256 = "1348gzp0zhc2wifvs5vmf92m9y8ik8ldnvy7bawsxahy8hmhiksk";
294282 };
295− path = "xdebug";
296283 postInstall = false;
297284 };
298285
@@ -321,8 +308,6 @@ in rec
321308 set runtimepath+=${vimproc}/share/vim-plugins/vimproc\
322309 ' autoload/vimshell.vim
323310 '';
324−
325− path = "vimshell";
326311 };
327312
328313 vimproc = buildVimPlugin rec {
@@ -350,8 +335,6 @@ in rec
350335 sed -i 's/vimproc_mac\.so/vimproc_unix\.so/' autoload/vimproc.vim
351336 make -f make_unix.mak
352337 '';
353−
354− path = "vimproc";
355338 };
356339
357340 colorsamplerpack = buildVimPlugin rec {
@@ -366,8 +349,6 @@ in rec
366349 };
367350
368351 buildInputs = [ unzip ];
369−
370− path = "colorsamplerpack";
371352 };
372353
373354 yankring = buildVimPlugin rec {
@@ -382,8 +363,6 @@ in rec
382363 };
383364
384365 buildInputs = [ unzip ];
385−
386− path = "yankring";
387366 };
388367
389368 ctrlp = buildVimPlugin rec {
@@ -398,8 +377,6 @@ in rec
398377 };
399378
400379 buildInputs = [ unzip ];
401−
402− path = "ctrlp";
403380 };
404381
405382 alternate = stdenv.mkDerivation rec {
@@ -425,7 +402,6 @@ in rec
425402 rev = "0b28e334e65b6628b0a61c412fcb45204a2f2bab";
426403 sha256 = "9681d471d1391626cb9ad22b2b469003d9980cd23c5c3a8d34666376447e6204";
427404 };
428− path = "vundle";
429405 };
430406
431407 tslime = buildVimPlugin {
@@ -435,7 +411,6 @@ in rec
435411 rev = "e801a32b27d83cb5d91afbf7c3d71bb6220f32bd";
436412 sha256 = "47fb7165c1dcc444285cdff6fa89bbd4ace82ca79ec14ba0da6091c5f78d1251";
437413 };
438− path = "tslime";
439414 };
440415
441416 supertab = buildVimPlugin {
@@ -445,7 +420,6 @@ in rec
445420 rev = "23db558596d4a73e4afa8fbedcde23b95bf72251";
446421 sha256 = "21fa675969f4cfd2686ab3b63cba632fa55d62481e61d36193403bea9c02ebde";
447422 };
448− path = "supertab";
449423 buildInputs = [ vim ];
450424 };
451425
@@ -456,7 +430,6 @@ in rec
456430 rev = "90ee6fb5d255d14d9f12f2469f92ee50149f5b44";
457431 sha256 = "0297512f7fee62af601a99a68617591ecb2e244475ff0d79ebee9c7e6eff2eaf";
458432 };
459− path = "fugitive";
460433 };
461434
462435 extradite = buildVimPlugin {
@@ -466,7 +439,6 @@ in rec
466439 rev = "af4f3a51b6b654d655121b93c0cd9d8fe9a0c85d";
467440 sha256 = "d1d29cfbc654134be383747f2cd6b14b7a87de75f997af6a041f14d7ef61ade6";
468441 };
469− path = "extradite";
470442 };
471443
472444 nerdtree = buildVimPlugin {
@@ -476,7 +448,6 @@ in rec
476448 rev = "4f1e6ecb057fc0bac189171c1430d71ef25f6bb1";
477449 sha256 = "67ff2e7b9a7f39e58e9e334b1b79343a4c11aae10a657ab4fece289d8fe59300";
478450 };
479− path = "nerdtree";
480451 };
481452
482453 airline = buildVimPlugin {
@@ -486,7 +457,6 @@ in rec
486457 rev = "2114e7025188a941e5c63b1f942d576adb98d8a4";
487458 sha256 = "b6fc4d0545f8b7e107c5f80b94cf536a2b1fdd55d9f2484a29a007911e96130f";
488459 };
489− path = "airline";
490460 };
491461
492462 ultisnips = buildVimPlugin {
@@ -496,7 +466,6 @@ in rec
496466 rev = "279d6e63c9a8dbaa20ffc43c3c5f057dfc8f1121";
497467 sha256 = "f8d93849ef2bce798aa599ba860694ced37d12450010a48dd6bd3004bc52b503";
498468 };
499− path = "ultisnips";
500469 };
501470
502471 align = buildVimPlugin {
@@ -506,7 +475,6 @@ in rec
506475 rev = "787662fe90cd057942bc5b682fd70c87e1a9dd77";
507476 sha256 = "f7b5764357370f03546556bd45558837f3790b0e86afadb63cd04d714a668a29";
508477 };
509− path = "align";
510478 };
511479
512480 gundo = buildVimPlugin {
@@ -516,7 +484,6 @@ in rec
516484 rev = "f443470b96364c24a775629418a6b2562ec9173e";
517485 sha256 = "b7a949167e59c936d6eae0d23635b87491b2cd2f46a197683b171d30165a90f9";
518486 };
519− path = "gundo";
520487 };
521488
522489 commentary = buildVimPlugin {
@@ -526,7 +493,6 @@ in rec
526493 rev = "8b4df6ca0ba9cd117d97a8fd26b44b2439d5e3f1";
527494 sha256 = "5496ed31706552957d4caa76669ecd04e9b2853cf7a7e40bd0164726b21fcca0";
528495 };
529− path = "commentary";
530496 };
531497
532498 tabular = buildVimPlugin {
@@ -536,7 +502,6 @@ in rec
536502 rev = "60f25648814f0695eeb6c1040d97adca93c4e0bb";
537503 sha256 = "28c860ad621587f2c3213fae47d1a3997746527c17d51e9ab94c209eb7bfeb0f";
538504 };
539− path = "tabular";
540505 };
541506
542507 vim2hs = buildVimPlugin {
@@ -546,7 +511,6 @@ in rec
546511 rev = "f2afd55704bfe0a2d66e6b270d247e9b8a7b1664";
547512 sha256 = "485fc58595bb4e50f2239bec5a4cbb0d8f5662aa3f744e42c110cd1d66b7e5b0";
548513 };
549− path = "vim2hs";
550514 };
551515
552516 hasksyn = buildVimPlugin {
@@ -556,7 +520,6 @@ in rec
556520 rev = "175cd4605afa5d9b9c75758112c8159fd118c631";
557521 sha256 = "3488e38d1f45a9a3363da62c1c946591621151a0a9cdaedd22b3fe8f666bbdb9";
558522 };
559− path = "hasksyn";
560523 };
561524
562525 haskellConceal = buildVimPlugin {
@@ -566,7 +529,6 @@ in rec
566529 rev = "73a8d712d3342b2ffdc087b12924f1cf81053860";
567530 sha256 = "be60ca030e2d39e972a8c71c0ab3b75b893589d26d5dd78a20cd6779f1f5cfa8";
568531 };
569− path = "haskellConceal";
570532 };
571533
572534 ghcmod = buildVimPlugin {
@@ -577,7 +539,6 @@ in rec
577539 sha256 = "f6a085f7b8198747fae3fff0bc38e4d030e5c97aaeb84958fbf96fa658bbe862";
578540 };
579541 patches = [ (fetchurl { url = "https://github.com/eagletmt/ghcmod-vim/pull/57.diff"; md5 = "cafbb9f725afbba26b52b6c3344ee89a"; }) ];
580− path = "ghcmod";
581542 };
582543
583544 necoGhc = buildVimPlugin {
@@ -587,7 +548,6 @@ in rec
587548 rev = "0311f31b3acaccec5b651ae7089d627a3a49239b";
588549 sha256 = "302f29f54c56e9cee647745a8355aeafe323c4efe2f3593d5e4f586acc1c06a5";
589550 };
590− path = "neco-ghc";
591551 };
592552
593553 hoogle = buildVimPlugin {
@@ -597,7 +557,6 @@ in rec
597557 rev = "81f28318b0d4174984c33df99db7752891c5c4e9";
598558 sha256 = "0f96f3badb6218cac87d0f7027ff032ecc74f08ad3ada542898278ce11cbd5a0";
599559 };
600− path = "hoogle";
601560 };
602561
603562 hdevtools = buildVimPlugin {
@@ -607,7 +566,6 @@ in rec
607566 rev = "474947c52ff9c93dd36f3c49de90bd9a78f0baa1";
608567 sha256 = "bf5f096b665c51ce611c6c1bfddc3267c4b2f94af84b04482b07272a6a5a92f3";
609568 };
610− path = "hdevtools";
611569 };
612570
613571 stylishHaskell = buildVimPlugin {
@@ -617,7 +575,6 @@ in rec
617575 rev = "453fd203aee3d7305ea8e4088ff53bd1f5933d75";
618576 sha256 = "c0e5010e1e8e56b179ce500387afb569f051c45b37ce92feb4350f293df96a8c";
619577 };
620− path = "stylish-haskell";
621578 };
622579
623580 wombat256 = buildVimPlugin {
@@ -627,7 +584,6 @@ in rec
627584 rev = "8734ba45dcf5e38c4d2686b35c94f9fcb30427e2";
628585 sha256 = "2feb7d57ab0a9f2ea44ccd606e540db64ab3285956398a50ecc562d7b8dbcd05";
629586 };
630− path = "wombat256";
631587 };
632588
633589 tmuxNavigator = buildVimPlugin {
@@ -637,7 +593,6 @@ in rec
637593 rev = "3de98bfcee1289ce8edc6daf9a18f243180c7168";
638594 sha256 = "3843f92e0a21fe5ccf613f8a561abd06c822b2ee98bd82c98937548144e4e8df";
639595 };
640− path = "tmux-navigator";
641596 };
642597
643598 pathogen = buildVimPlugin {
@@ -647,7 +602,6 @@ in rec
647602 rev = "91e6378908721d20514bbe5d18d292a0a15faf0c";
648603 sha256 = "24c1897d6b58576b2189c90050a7f8ede72a51343c752e9d030e833dbe5cac6f";
649604 };
650− path = "pathogen";
651605 };
652606
653607 vimoutliner = buildVimPlugin {
@@ -657,7 +611,6 @@ in rec
657611 rev = "2fc82976683c8770bece157ae3ada55251b6ddeb";
658612 sha256 = "dce383e7842c42bcfa8e7c3329fa426cb0fb05786d40a733da705c03aabd196b";
659613 };
660− path = "vimoutliner";
661614 };
662615
663616}