-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjieba.nvim-scm-1.rockspec
45 lines (36 loc) · 1 KB
/
jieba.nvim-scm-1.rockspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
local git_ref = '0fd6474d1f1880171a4d56a701e33c4b4bb8b566'
local modrev = 'scm'
local specrev = '1'
local repo_url = 'https://github.com/Freed-Wu/jieba.nvim'
rockspec_format = '3.0'
package = 'jieba.nvim'
version = modrev ..'-'.. specrev
description = {
summary = '基于cppjieba的neovim中文词跳转',
detailed = '',
labels = { 'cppjieba', 'jieba', 'neovim', 'vim', 'vim-plugin' } ,
homepage = 'https://luarocks.org/modules/Freed-Wu/jieba.nvim',
license = 'GPL-3.0'
}
build_dependencies = { "luarocks-build-xmake" }
dependencies = { 'lua >= 5.1' }
test_dependencies = { }
source = {
url = repo_url .. '/archive/' .. git_ref .. '.zip',
dir = 'jieba.nvim-' .. '0fd6474d1f1880171a4d56a701e33c4b4bb8b566',
}
if modrev == 'scm' or modrev == 'dev' then
source = {
url = repo_url:gsub('https', 'git')
}
end
build = {
type = 'xmake',
copy_directories = {'plugin'},
-- https://github.com/xmake-io/luarocks-build-xmake/pull/3
install = {
conf = {
['..'] = 'shell.nix'
},
},
}