lol
1{
2 lib,
3 vimUtils,
4 tup,
5}:
6let
7 # Based on the comment at the top of https://github.com/gittup/tup/blob/master/contrib/syntax/tup.vim
8 ftdetect = builtins.toFile "tup.vim" ''
9 au BufNewFile,BufRead Tupfile,*.tup setf tup
10 '';
11in
12vimUtils.buildVimPlugin {
13 inherit (tup) pname version src;
14 preInstall = ''
15 mkdir -p vim-plugin/syntax vim-plugin/ftdetect
16 cp contrib/syntax/tup.vim vim-plugin/syntax/tup.vim
17 cp "${ftdetect}" vim-plugin/ftdetect/tup.vim
18 cd vim-plugin
19 '';
20 meta.maintainers = with lib.maintainers; [ enderger ];
21}