##// END OF EJS Templates
nix: use node 8 LTS to generate packages
ergo -
r3151:c94806c1 default
parent child Browse files
Show More
@@ -1,60 +1,60 b''
1
1
2 ==============================
2 ==============================
3 Generate the Nix expressions
3 Generate the Nix expressions
4 ==============================
4 ==============================
5
5
6 Details can be found in the repository of `RhodeCode Enterprise CE`_ inside of
6 Details can be found in the repository of `RhodeCode Enterprise CE`_ inside of
7 the file `docs/contributing/dependencies.rst`.
7 the file `docs/contributing/dependencies.rst`.
8
8
9 Start the environment as follows:
9 Start the environment as follows:
10
10
11 .. code:: shell
11 .. code:: shell
12
12
13 nix-shell pkgs/shell-generate.nix
13 nix-shell pkgs/shell-generate.nix
14
14
15
15
16
16
17 Python dependencies
17 Python dependencies
18 ===================
18 ===================
19
19
20 .. code:: shell
20 .. code:: shell
21
21
22 pip2nix generate --licenses
22 pip2nix generate --licenses
23 # or
23 # or
24 nix-shell pkgs/shell-generate.nix --command "pip2nix generate --licenses"
24 nix-shell pkgs/shell-generate.nix --command "pip2nix generate --licenses"
25
25
26
26
27 NodeJS dependencies
27 NodeJS dependencies
28 ===================
28 ===================
29
29
30 .. code:: shell
30 .. code:: shell
31
31
32 rm -rf node_modules
32 rm -rf node_modules
33 nix-shell pkgs/shell-generate.nix --command "
33 nix-shell pkgs/shell-generate.nix --command "
34 node2nix --input package.json \
34 node2nix --input package.json \
35 -o pkgs/node-packages.nix \
35 -o pkgs/node-packages.nix \
36 -e pkgs/node-env.nix \
36 -e pkgs/node-env.nix \
37 -c pkgs/node-default.nix \
37 -c pkgs/node-default.nix \
38 -d --flatten --nodejs-6 "
38 -d --flatten --nodejs-8 "
39
39
40
40
41
41
42 Bower dependencies
42 Bower dependencies
43 ==================
43 ==================
44
44
45 .. code:: shell
45 .. code:: shell
46
46
47 nix-shell pkgs/shell-generate.nix --command "bower2nix bower.json pkgs/bower-packages.nix"
47 nix-shell pkgs/shell-generate.nix --command "bower2nix bower.json pkgs/bower-packages.nix"
48
48
49
49
50 Generate license data
50 Generate license data
51 =====================
51 =====================
52
52
53 .. code:: shell
53 .. code:: shell
54
54
55 nix-build pkgs/license-generate.nix -o result-license && cat result-license/licenses.json | python -m json.tool > rhodecode/config/licenses.json
55 nix-build pkgs/license-generate.nix -o result-license && cat result-license/licenses.json | python -m json.tool > rhodecode/config/licenses.json
56
56
57
57
58 .. Links
58 .. Links
59
59
60 .. _RhodeCode Enterprise CE: https://code.rhodecode.com/rhodecode-enterprise-ce
60 .. _RhodeCode Enterprise CE: https://code.rhodecode.com/rhodecode-enterprise-ce
General Comments 0
You need to be logged in to leave comments. Login now