Show More
@@ -1,60 +1,65 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 | Generate node-packages.nix file with all dependencies from NPM and package.json file | |||
|
31 | This should be run before entering nix-shell. | |||
|
32 | ||||
30 | .. code:: shell |
|
33 | .. code:: shell | |
31 |
|
34 | |||
32 | rm -rf node_modules |
|
35 | rm -rf node_modules | |
33 | nix-shell pkgs/shell-generate.nix --command " |
|
36 | nix-shell pkgs/shell-generate.nix --command " | |
34 | node2nix --input package.json \ |
|
37 | node2nix --input package.json \ | |
35 | -o pkgs/node-packages.nix \ |
|
38 | -o pkgs/node-packages.nix \ | |
36 | -e pkgs/node-env.nix \ |
|
39 | -e pkgs/node-env.nix \ | |
37 | -c pkgs/node-default.nix \ |
|
40 | -c pkgs/node-default.nix \ | |
38 | -d --flatten --nodejs-8 " |
|
41 | -d --flatten --nodejs-8 " | |
39 |
|
42 | |||
|
43 | # fix bug with http rewrite of re-generated packages | |||
|
44 | sed -i -e 's/http:\/\//https:\/\//g' pkgs/node-packages.nix | |||
40 |
|
45 | |||
41 |
|
46 | |||
42 | Bower dependencies |
|
47 | Bower dependencies | |
43 | ================== |
|
48 | ================== | |
44 |
|
49 | |||
45 | .. code:: shell |
|
50 | .. code:: shell | |
46 |
|
51 | |||
47 | nix-shell pkgs/shell-generate.nix --command "bower2nix bower.json pkgs/bower-packages.nix" |
|
52 | nix-shell pkgs/shell-generate.nix --command "bower2nix bower.json pkgs/bower-packages.nix" | |
48 |
|
53 | |||
49 |
|
54 | |||
50 | Generate license data |
|
55 | Generate license data | |
51 | ===================== |
|
56 | ===================== | |
52 |
|
57 | |||
53 | .. code:: shell |
|
58 | .. code:: shell | |
54 |
|
59 | |||
55 | nix-build pkgs/license-generate.nix -o result-license && cat result-license/licenses.json | python -m json.tool > rhodecode/config/licenses.json |
|
60 | nix-build pkgs/license-generate.nix -o result-license && cat result-license/licenses.json | python -m json.tool > rhodecode/config/licenses.json | |
56 |
|
61 | |||
57 |
|
62 | |||
58 | .. Links |
|
63 | .. Links | |
59 |
|
64 | |||
60 | .. _RhodeCode Enterprise CE: https://code.rhodecode.com/rhodecode-enterprise-ce |
|
65 | .. _RhodeCode Enterprise CE: https://code.rhodecode.com/rhodecode-enterprise-ce |
General Comments 0
You need to be logged in to leave comments.
Login now