Show More
@@ -1,60 +1,60 b'' | |||
|
1 | 1 | |
|
2 | 2 | ============================== |
|
3 | 3 | Generate the Nix expressions |
|
4 | 4 | ============================== |
|
5 | 5 | |
|
6 | 6 | Details can be found in the repository of `RhodeCode Enterprise CE`_ inside of |
|
7 | 7 | the file `docs/contributing/dependencies.rst`. |
|
8 | 8 | |
|
9 | 9 | Start the environment as follows: |
|
10 | 10 | |
|
11 | 11 | .. code:: shell |
|
12 | 12 | |
|
13 | 13 | nix-shell pkgs/shell-generate.nix |
|
14 | 14 | |
|
15 | 15 | |
|
16 | 16 | |
|
17 | 17 | Python dependencies |
|
18 | 18 | =================== |
|
19 | 19 | |
|
20 | 20 | .. code:: shell |
|
21 | 21 | |
|
22 | 22 | pip2nix generate --licenses |
|
23 | 23 | # or |
|
24 | 24 | nix-shell pkgs/shell-generate.nix --command "pip2nix generate --licenses" |
|
25 | 25 | |
|
26 | 26 | |
|
27 | 27 | NodeJS dependencies |
|
28 | 28 | =================== |
|
29 | 29 | |
|
30 | 30 | .. code:: shell |
|
31 | 31 | |
|
32 | 32 | rm -rf node_modules |
|
33 | 33 | nix-shell pkgs/shell-generate.nix --command " |
|
34 | 34 | node2nix --input package.json \ |
|
35 | 35 | -o pkgs/node-packages.nix \ |
|
36 | 36 | -e pkgs/node-env.nix \ |
|
37 | 37 | -c pkgs/node-default.nix \ |
|
38 |
-d --flatten --nodejs- |
|
|
38 | -d --flatten --nodejs-8 " | |
|
39 | 39 | |
|
40 | 40 | |
|
41 | 41 | |
|
42 | 42 | Bower dependencies |
|
43 | 43 | ================== |
|
44 | 44 | |
|
45 | 45 | .. code:: shell |
|
46 | 46 | |
|
47 | 47 | nix-shell pkgs/shell-generate.nix --command "bower2nix bower.json pkgs/bower-packages.nix" |
|
48 | 48 | |
|
49 | 49 | |
|
50 | 50 | Generate license data |
|
51 | 51 | ===================== |
|
52 | 52 | |
|
53 | 53 | .. code:: shell |
|
54 | 54 | |
|
55 | 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 | 58 | .. Links |
|
59 | 59 | |
|
60 | 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