Show More
The requested changes are too big and content was truncated. Show full diff
@@ -1,65 +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 |
|
30 | Generate node-packages.nix file with all dependencies from NPM and package.json file | |
31 | This should be run before entering nix-shell. |
|
31 | This should be run before entering nix-shell. | |
32 |
|
32 | |||
33 |
The sed at the end fixe |
|
33 | The sed at the end fixes a bug with http rewrite of re-generated packages | |
34 |
|
34 | |||
35 | .. code:: shell |
|
35 | .. code:: shell | |
36 |
|
36 | |||
37 | rm -rf node_modules && |
|
37 | rm -rf node_modules && | |
38 | nix-shell pkgs/shell-generate.nix --command " |
|
38 | nix-shell pkgs/shell-generate.nix --command " | |
39 | node2nix --input package.json \ |
|
39 | node2nix --input package.json \ | |
40 | -o pkgs/node-packages.nix \ |
|
40 | -o pkgs/node-packages.nix \ | |
41 | -e pkgs/node-env.nix \ |
|
41 | -e pkgs/node-env.nix \ | |
42 | -c pkgs/node-default.nix \ |
|
42 | -c pkgs/node-default.nix \ | |
43 | -d --flatten --nodejs-8 " && |
|
43 | -d --flatten --nodejs-8 " && | |
44 | sed -i -e 's/http:\/\//https:\/\//g' pkgs/node-packages.nix |
|
44 | sed -i -e 's/http:\/\//https:\/\//g' pkgs/node-packages.nix | |
45 |
|
45 | |||
46 |
|
46 | |||
47 | Bower dependencies |
|
47 | Bower dependencies | |
48 | ================== |
|
48 | ================== | |
49 |
|
49 | |||
50 | .. code:: shell |
|
50 | .. code:: shell | |
51 |
|
51 | |||
52 | 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" | |
53 |
|
53 | |||
54 |
|
54 | |||
55 | Generate license data |
|
55 | Generate license data | |
56 | ===================== |
|
56 | ===================== | |
57 |
|
57 | |||
58 | .. code:: shell |
|
58 | .. code:: shell | |
59 |
|
59 | |||
60 | 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 | |
61 |
|
61 | |||
62 |
|
62 | |||
63 | .. Links |
|
63 | .. Links | |
64 |
|
64 | |||
65 | .. _RhodeCode Enterprise CE: https://code.rhodecode.com/rhodecode-enterprise-ce |
|
65 | .. _RhodeCode Enterprise CE: https://code.rhodecode.com/rhodecode-enterprise-ce |
1 | NO CONTENT: modified file |
|
NO CONTENT: modified file | ||
The requested commit or file is too big and content was truncated. Show full diff |
General Comments 0
You need to be logged in to leave comments.
Login now