Show More
@@ -1,55 +1,52 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 | # switch to pkgs dir | |
|
33 | pushd pkgs | |
|
34 |
node2nix --input |
|
|
35 | -o node-packages.nix \ | |
|
36 | -e node-env.nix \ | |
|
37 | -c node-default.nix \ | |
|
38 | -d --flatten --nodejs-6 | |
|
39 | popd | |
|
32 | rm -rf node_modules | |
|
33 | nix-shell pkgs/shell-generate.nix --command " | |
|
34 | node2nix --input package.json \ | |
|
35 | -o pkgs/node-packages.nix \ | |
|
36 | -e pkgs/node-env.nix \ | |
|
37 | -c pkgs/node-default.nix \ | |
|
38 | -d --flatten --nodejs-6 " | |
|
40 | 39 | |
|
41 | 40 | |
|
42 | 41 | |
|
43 | 42 | Bower dependencies |
|
44 | 43 | ================== |
|
45 | 44 | |
|
46 | 45 | .. code:: shell |
|
47 | 46 | |
|
48 | bower2nix bower.json pkgs/bower-packages.nix | |
|
49 | # or | |
|
50 | 47 | nix-shell pkgs/shell-generate.nix --command "bower2nix bower.json pkgs/bower-packages.nix" |
|
51 | 48 | |
|
52 | 49 | |
|
53 | 50 | .. Links |
|
54 | 51 | |
|
55 | 52 | .. _RhodeCode Enterprise CE: https://code.rhodecode.com/rhodecode-enterprise-ce |
General Comments 0
You need to be logged in to leave comments.
Login now