Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 57 additions & 3 deletions pkgs/misc/vim-plugins/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ fetchurl, stdenv, python, cmake, vim, perl, ruby, unzip }:
{ fetchurl, stdenv, python, cmake, vim, perl, ruby, unzip, which }:

/*
About Vim and plugins
Expand Down Expand Up @@ -90,14 +90,13 @@ let vimHelpTags = ''
installPhase = ''
target=$out/vim-plugins/$path
ensureDir $out/vim-plugins
ls -l
cp -r . $target
${vimHelpTags}
vimHelpTags $target
'';
});

in
in rec

{

Expand Down Expand Up @@ -251,4 +250,59 @@ in
path = "xdebug";
postInstall = false;
};

vimshell = simpleDerivation rec {
version = "9.2";
name = "vimshell-${version}";

meta = with stdenv.lib; {
description = "";
homepage = "https://github.com/Shougo/vimshell.vim";
license = licenses.gpl3;
maintainers = with maintainers; [ lovek323 ];
platforms = platforms.unix;
};

src = fetchurl {
url = "https://github.com/Shougo/vimshell.vim/archive/ver.${version}.tar.gz";
sha256 = "1pbwxdhpv6pr09b6hwkgy7grpmpwlqpsgsawl38r40q6yib8zb4a";
};

buildInputs = [ vimproc ];

preBuild = ''
sed -ie '1 i\
set runtimepath+=${vimproc}/vim-plugins/vimproc\
' autoload/vimshell.vim
'';

path = "vimshell";
};

vimproc = simpleDerivation rec {
version = "5cf4c6bfe9bf0649159b5648d736d54c96e99b3e";
name = "vimproc-${version}";

meta = with stdenv.lib; {
description = "An asynchronous execution library for vim";
homepage = "https://github.com/Shougo/vimproc.vim";
license = licenses.gpl3;
maintainers = with maintainers; [ lovek323 ];
platforms = platforms.unix;
};

src = fetchurl {
url = "${meta.homepage}/archive/${version}.tar.gz";
sha256 = "0f76mc7v3656sf9syaq1rxzk3dqz6i5w190wgj15sjjnapzd956p";
};

buildInputs = [ which ];

buildPhase = ''
sed -i 's/vimproc_mac\.so/vimproc_unix\.so/' autoload/vimproc.vim
make -f make_unix.mak
'';

path = "vimproc";
};
}