git.iko.soy/typeable/nixpkgs
on master help sign in
vim-plugins: use lower case attr and pkg names

(According to the nixpkgs manual.) Keep old attrnames around for backward compatibility.

commitc60c0ede9ac182bfdda1728a0917a4579dff8133 authorBjørn Forsman <bjorn.forsman@gmail.com> dateSat 18 Oct 2014, 14:25 (12 years ago) parente6c1973
1 file changed+20−13
pkgs/misc/vim-plugins/default.nix+20−13
pkgs/misc/vim-plugins/default.nix+20−13
@@ -22,8 +22,8 @@ assembles your profile for you.
2222Vim offers the :h rtp setting which works for most plugins. Thus adding adding
2323this to your .vimrc should make most plugins work:
2424
25− set rtp+=~/.nix-profile/vim-plugins/YouCompleteMe
26− " or for p in ["YouCompleteMe"] | exec 'set rtp+=~/.nix-profile/vim-plugins/'.p | endfor
25+ set rtp+=~/.nix-profile/vim-plugins/youcompleteme
26+ " or for p in ["youcompleteme"] | exec 'set rtp+=~/.nix-profile/vim-plugins/'.p | endfor
2727
2828Its what pathogen, vundle, vim-addon-manager (VAM) use.
2929
@@ -68,7 +68,7 @@ outdated ones.
6868
6969So which plugins to add here according to what Marc Weber thinks is best?
7070Complicated plugins requiring dependencies, such as YouCompleteMe.
71−Then its best to symlink ~/.nix-profile/vim-plugins/YouCompleteMe to
71+Then its best to symlink ~/.nix-profile/vim-plugins/youcompleteme to
7272~/.vim/{vim-addons,bundle} or whatever plugin management solution you use.
7373
7474If you feel differently change the comments and proceed.
@@ -101,7 +101,7 @@ in rec
101101
102102{
103103
104− vimAddonNix = {
104+ vim-addon-nix = {
105105 # github.com/MarcWeber/vim-addon-nix provides some additional support for
106106 # editing .nix files
107107
@@ -109,7 +109,7 @@ in rec
109109 # git version. It also depends on some additional plugins (see addon-info.json)
110110 };
111111
112− YouCompleteMe = stdenv.mkDerivation {
112+ youcompleteme = stdenv.mkDerivation {
113113 src = fetchgit {
114114 url = "https://github.com/Valloric/YouCompleteMe.git";
115115 rev = "a2cae90f7ba1746bf1209edd6739f87d5914b375";
@@ -124,7 +124,7 @@ in rec
124124 buildPhase = ''
125125 patchShebangs .
126126
127− target=$out/share/vim-plugins/YouCompleteMe
127+ target=$out/share/vim-plugins/youcompleteme
128128 mkdir -p $target
129129 cp -a ./ $target
130130
@@ -150,6 +150,7 @@ in rec
150150 platforms = stdenv.lib.platforms.linux;
151151 };
152152 };
153+ YouCompleteMe = youcompleteme; # backwards compat, added 2014-10-18
153154
154155 syntastic = buildVimPlugin rec {
155156 version = "3.4.0";
@@ -161,15 +162,16 @@ in rec
161162 };
162163 };
163164
164− coffeeScript = buildVimPlugin {
165+ coffee-script = buildVimPlugin {
165166 name = "coffee-script-v002";
166167 src = fetchurl {
167168 url = "https://github.com/vim-scripts/vim-coffee-script/archive/v002.tar.gz";
168169 sha256 = "1xln6i6jbbihcyp5bsdylr2146y41hmp2xf7wi001g2ymj1zdsc0";
169170 };
170171 };
172+ coffeeScript = coffee-script; # backwards compat, added 2014-10-18
171173
172− command_T = buildVimPlugin rec {
174+ command-t = buildVimPlugin rec {
173175 version = "1.8";
174176 name = "command-t-${version}";
175177 src = fetchzip {
@@ -185,6 +187,7 @@ in rec
185187 popd
186188 '';
187189 };
190+ command_T = command-t; # backwards compat, added 2014-10-18
188191
189192 eighties = buildVimPlugin rec {
190193 version = "1.0.4";
@@ -523,14 +526,15 @@ in rec
523526 };
524527 };
525528
526− haskellConceal = buildVimPlugin {
527− name = "haskellConceal-git-73a8d712";
529+ haskellconceal = buildVimPlugin {
530+ name = "haskellconceal-git-73a8d712";
528531 src = fetchgit {
529532 url = "https://github.com/begriffs/vim-haskellConceal.git";
530533 rev = "73a8d712d3342b2ffdc087b12924f1cf81053860";
531534 sha256 = "be60ca030e2d39e972a8c71c0ab3b75b893589d26d5dd78a20cd6779f1f5cfa8";
532535 };
533536 };
537+ haskellConceal = haskellconceal; # backwards compat, added 2014-10-18
534538
535539 ghcmod = buildVimPlugin {
536540 name = "ghcmod-git-0c4e9428";
@@ -542,7 +546,7 @@ in rec
542546 patches = [ (fetchurl { url = "https://github.com/eagletmt/ghcmod-vim/pull/57.diff"; md5 = "cafbb9f725afbba26b52b6c3344ee89a"; }) ];
543547 };
544548
545− necoGhc = buildVimPlugin {
549+ neco-ghc = buildVimPlugin {
546550 name = "neco-ghc-git-0311f31b";
547551 src = fetchgit {
548552 url = "https://github.com/eagletmt/neco-ghc.git";
@@ -550,6 +554,7 @@ in rec
550554 sha256 = "302f29f54c56e9cee647745a8355aeafe323c4efe2f3593d5e4f586acc1c06a5";
551555 };
552556 };
557+ necoGhc = neco-ghc; # backwards compat, added 2014-10-18
553558
554559 hoogle = buildVimPlugin {
555560 name = "hoogle-git-81f28318";
@@ -569,7 +574,7 @@ in rec
569574 };
570575 };
571576
572− stylishHaskell = buildVimPlugin {
577+ stylish-haskell = buildVimPlugin {
573578 name = "stylish-haskell-git-453fd203";
574579 src = fetchgit {
575580 url = "https://github.com/nbouscal/vim-stylish-haskell.git";
@@ -577,6 +582,7 @@ in rec
577582 sha256 = "c0e5010e1e8e56b179ce500387afb569f051c45b37ce92feb4350f293df96a8c";
578583 };
579584 };
585+ stylishHaskell = stylish-haskell; # backwards compat, added 2014-10-18
580586
581587 wombat256 = buildVimPlugin {
582588 name = "wombat256-git-8734ba45";
@@ -587,7 +593,7 @@ in rec
587593 };
588594 };
589595
590− tmuxNavigator = buildVimPlugin {
596+ tmux-navigator = buildVimPlugin {
591597 name = "tmux-navigator-git-3de98bfc";
592598 src = fetchgit {
593599 url = "https://github.com/christoomey/vim-tmux-navigator.git";
@@ -595,6 +601,7 @@ in rec
595601 sha256 = "3843f92e0a21fe5ccf613f8a561abd06c822b2ee98bd82c98937548144e4e8df";
596602 };
597603 };
604+ tmuxNavigator = tmux-navigator; # backwards compat, added 2014-10-18
598605
599606 pathogen = buildVimPlugin {
600607 name = "pathogen-git-3de98bfc";