|
1 | | -local git_ref = '$git_ref' |
2 | | -local modrev = '$modrev' |
3 | | -local specrev = '$specrev' |
4 | | - |
5 | | -local repo_url = '$repo_url' |
6 | | - |
7 | | -rockspec_format = '3.0' |
8 | | -package = '$package' |
9 | | -version = modrev ..'-'.. specrev |
10 | | - |
11 | | -description = { |
12 | | - summary = '$summary', |
13 | | - detailed = $detailed_description, |
14 | | - labels = $labels, |
15 | | - homepage = '$homepage', |
16 | | - $license |
17 | | -} |
18 | | - |
19 | | -build_dependencies = { 'luarocks-build-embedded-rockspecs' } |
20 | | - |
21 | | -dependencies = { 'lua >= 5.1', 'lua-requests', 'lua-dotenv' } |
22 | | - |
23 | | -test_dependencies = $test_dependencies |
24 | | - |
25 | | -source = { |
26 | | - url = repo_url .. '/archive/' .. git_ref .. '.zip', |
27 | | - dir = '$repo_name-' .. '$archive_dir_suffix', |
28 | | -} |
29 | | - |
30 | | -if modrev == 'scm' or modrev == 'dev' then |
31 | | - source = { |
32 | | - url = repo_url:gsub('https', 'git') |
33 | | - } |
34 | | -end |
35 | | - |
36 | | -build = { |
37 | | - type = "embedded-rockspecs", |
38 | | - delegate_type = "builtin", |
39 | | - copy_directories = $copy_directories, |
40 | | - install = { |
41 | | - conf = { |
42 | | - ['..'] = 'shell.nix', |
43 | | - ['../scripts/update.sh'] = 'scripts/update.sh', |
44 | | - ['../scripts/get-OPENSSL_INCDIR.nix'] = 'scripts/get-OPENSSL_INCDIR.nix', |
45 | | - ['../scripts/get-OPENSSL_LIBDIR.nix'] = 'scripts/get-OPENSSL_LIBDIR.nix', |
46 | | - ['../scripts/get-STDCPP_LIBDIR.nix'] = 'scripts/get-STDCPP_LIBDIR.nix', |
47 | | - }, |
48 | | - }, |
49 | | - rockspecs = { |
50 | | -[==[ |
51 | 1 | package = "xml" |
52 | 2 | version = "1.1.3-1" |
53 | 3 | source = { |
@@ -122,5 +72,3 @@ build = { |
122 | 72 | }, |
123 | 73 | }, |
124 | 74 | } |
125 | | -]==], |
126 | | -} |
0 commit comments